POST
/
auth
/
token
curl --request POST \
  --url https://api.charp.ai/auth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "<string>",
  "client_secret": "<string>"
}'
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123,
  "refresh_token": "<string>"
}

Body

application/json
Client credentials
client_id
string
required

Client ID provided during vendor onboarding

client_secret
string
required

Secret key provided during vendor onboarding

Response

200
application/json
Access token generated successfully
access_token
string
required

Access token for API authentication

token_type
string
required

Type of token (e.g., Bearer)

expires_in
integer
required

Token expiration time in seconds

refresh_token
string

Token used to refresh the access token