We're announcing 🧑‍🚀 inter-galactic shipping ✨ for 3025!
Cosmo Cargo Inc.
Shipment API

Authentication

Server

Endpoints for obtaining warp-grade OAuth tokens used to authorize cargo operations.


Issue OAuth access token

POST
https://c1cf69108515455da09b5a33ff336111-oas.api.mockbin.io
/oauth/token

Exchange client credentials for a short-lived warp-grade access token. The request body must be sent as application/x-www-form-urlencoded per RFC 6749.

Issue OAuth access token › Request Body

grant_type
​string · enum · required

OAuth 2.0 grant type. Only client_credentials is supported for fleet integrations.

Enum values:
client_credentials
client_id
​string · required

Identifier issued when registering your fleet integration.

client_secret
​string · password · required

Secret issued alongside the client_id. Treat as sensitive.

scope
​string

Space-separated list of requested scopes (e.g. shipments:read shipments:write).

Issue OAuth access token › Responses

Access token issued

access_token
​string · required

Bearer token to send in the Authorization header.

token_type
​string · enum · required
Enum values:
Bearer
expires_in
​integer · required

Token lifetime in seconds.

scope
​string