Get Access Token

This endpoint takes the client_id and client_secret and returns an access token that can be used with any of the Carriyo Shipment endpoints assuming the client_id has access to the target Shipment endpoint.

The access token returned by this endpoint should be used as a bearer token in the 'Authorization' header for any subsequent Shipment endpoints.

The access token should be cached on the client side until its expiry.

Request
Request Body schema: application/json
client_id
string
client_secret
string
Responses
200
post/oauth/token
Request samples
application/json
{
  • "client_id": "string",
  • "client_secret": "string"
}
Response samples
application/json
{
  • "access_token": "string",
  • "scope": "string",
  • "expires_in": "string",
  • "token_type": "string"
}