post https://api.pictory.ai/pictoryapis/v1/oauth2/token
Authentication is done via client credentials created for the customer and the API key. A token endpoint request with client credentials would fetch an access token.
To authenticate, set an Authorization request header equal to the value of the access token on each request. Invalid or missing tokens or expired tokens will return a 401 Unauthorized response. Tokens expire in 1 hour.
Request Body
{
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}"
}
Response Body
{
"access_token":"YOUR_APPLICATION_ACCESS_TOKEN",
"expires_in": 3600,
"token_type": "Bearer"
}
KEY | TYPE | DESCRIPTION |
---|---|---|
access_token | string | The access Token must be passed in the Authorisation header for all requests. |
expires_in | int | Time duration in second in which the access_token will expire. |