/token/obtain
Authenticate and obtain an access token
Endpoint
Purpose
Allows you to exchange the username and password provided by Progeny, for an access token and refresh token.
To access API endpoints that require authentication, you should include the access token in the header of all requests.
Sample request and response
Exchange username and password for a token
POST
https://be.progeny.tech/api/v3/accounts/token/obtain/
Request Body
Name | Type | Description |
---|---|---|
username* | String | The username provided by Progeny |
password* | String | The password provided by Progeny |
The "access" token used to make API calls is only valid for five minutes. To obtain a new access token without having to re-enter username/password, use the /refresh endpoint.
Get a new access token
POST
https://be.progeny.tech/api/v3/accounts/token/refresh/
Request Body
Name | Type | Description |
---|---|---|
refresh* | String | The refresh value from /obtain |
Last updated