Capvant

Exchange an API key for an access token

post
https://sandbox.capvant.com/partner/v1/oauth/token
POST
/oauth/token

client_id is the key prefix shown in your portal; client_secret is the key itself. The environment is decided by the key, so a sandbox key can only ever mint a sandbox token. Send either application/x-www-form-urlencoded or application/json.

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

Shell
curl -X POST "https://sandbox.capvant.com/oauth/token" \  -H "Content-Type: application/json" \  -d '{    "grant_type": "client_credentials",    "client_id": "string",    "client_secret": "string"  }'
JSON
{  "access_token": "string",  "token_type": "Bearer",  "expires_in": 0,  "scope": "string",  "environment": "live"}