Authentication
Issues OAuth 2.0 access tokens for machine-to-machine API access. Exchange a client ID and client secret for a short-lived bearer token, then include it alongside your tenant ID and API key on every subsequent request. Client credentials — and the per-resource permissions you grant them — are managed in the Carriyo Dashboard.
post
/oauth/tokenGet access token
Exchanges a client_id and client_secret for an access token.
Use the returned access_token as a bearer token in the Authorization header on every subsequent Carriyo API call. Cache the token client-side until it expires; expires_in reports the lifetime in seconds.
Headers
| Name | Value | Required | Description |
|---|---|---|---|
| Content-Type | application/json | Yes | Media type of the request body. |
Request body
Content type:
application/jsonrequiredResponses
200Success response.
400Bad request.
client_id or client_secret is missing from the request body.Need the full machine-readable spec? Download the OpenAPI document →