OAuth2
Generate tokens
Exchange an auth code received at the authorize endpoint for an actual access token, or refresh it.
POST
/
v1
/
oauth
/
tokens
Body
application/json
client_id
string
requiredApplication's client ID.
client_secret
string
requiredApplication's client secret.
grant_type
enum<string>
requiredTo exchange an auth code for an app access token, use authorization_code
.
Available options:
authorization_code
code
string
requiredThe auth code received when creating the authorization.
redirect_uri
string
requiredMust match the value set at the GET /authorize
endpoint.
Response
200 - application/json
access_token
string
requiredAccess token with which you will be able to access the Hyperline API on the organisation's behalf.
expires_in
number
requiredThe number of seconds left before the app access token expires. Be sure to renew your app access token before this reaches zero.
token_type
enum<string>
requiredAvailable options:
bearer
refresh_token
string
Refresh token with which you will be able to retrieve a new access token on this endpoint. The refresh token does not expire.
Was this page helpful?