1️⃣Create Access Token
Last updated
Last updated
Authentication
https://auth.qa.optty.com/token
Authentication
https://auth.optty.com/token
In order to access the API’s, first create an access token that will be used in the header of subsequent calls.
Access tokens expire in 24 hours from the time it was created but you are able to use this method to obtain a new token.
POST
/token?expires_in=1
Access tokens are only valid for 24 hours from its creation. Use this method if the current token is expiring soon or it may have been compromised to obtain a new Access Token. Client ID and secret credentials are provided by Optty.
content-type*
application/x-www-form-urlencoded
client_id*
string
Client_ID credentials provided by Optty
client_secret*
string
Client secret credentials provided by Optty
grant_type*
string
Always “client_credentials”
scope*
string
The supported scope for machine-to-machine interaction for Optty’s APIs is “api-user”, this is needed to make API calls for placing an order