Auth
Token
You can use this endpoint to login in the application with your account and receive a token.
- Endpoint:
POST https://api.proposalpage.com/accounts/auth/token
1
Parameters:
Path: Empty.
Header: Empty.
Body:
Name Type Description Required username string Your account username. ✔️ password string Your account password. ✔️ Response:
Status: 200
{
"token": "your-token-here",
}
1
2
3
4
5
2
3
4
5
- Example:
curl -XPOST -H "Content-type: application/json" -d '{"username":"test@example.com","password":"test"}' 'https://api.proposalpage.com/accounts/auth/token'
1
Me
You can use this endpoint to receive your user id.
- Endpoint:
GET https://api.proposalpage.com/accounts/auth/me
1
- Response:
Status: 200
{
"id": "your-id-here",
}
1
2
3
4
5
2
3
4
5
Parameters:
Path: Empty.
Header:
Name Type Description Required Authorization string Your Bearer Token obtained in the Auth Token endpoint. ✔️ - Body: Empty.
Example:
curl -XGET -H 'Authorization: Bearer $TOKEN' -H "Content-type: application/json" 'https://api.proposalpage.com/accounts/auth/me'
1