Skip to main content

POST /oauth/token

Exchange your integration credentials (client_id + client_secret) for a short-lived Bearer token. This is the recommended authentication method for all programmatic integrations.
This endpoint does not require prior authentication. Credentials are provisioned by your DokStamp account manager.

Request

Response 200

Error 401


Using the token

Add the token to every subsequent request:

Token expiry and renewal

Service tokens expire after 12 hours. There is no refresh token — request a new token when the current one expires. Recommended pattern: cache the token and renew it proactively ~60 seconds before expiry.

Rotating credentials

If a client_secret is compromised, contact your DokStamp account manager to rotate the credentials. A new client_id / client_secret pair will be issued and all existing tokens for the old credentials will be immediately revoked.