POST /auth/token

Exchange client credentials for access token using OAuth2 Client Credentials Grant

application/json

Body Required

  • clientId string Required

    Client identifier

  • clientSecret string(password) Required

    Client secret

Responses

  • 200 application/json

    Successful authentication

    Hide response attributes Show response attributes object
    • accessToken string Required

      Bearer access token

    • tokenType string Required

      Token type

    • expiresIn integer Required

      Token expiration time in seconds

  • 401 application/json

    Invalid client credentials

    Hide response attribute Show response attribute object
    • detail string
POST /auth/token
curl \
 --request POST 'https://api.thankly.ai/auth/token' \
 --header "Content-Type: application/json" \
 --data '{"clientId":"string","clientSecret":"string"}'
Request examples
{
  "clientId": "string",
  "clientSecret": "string"
}
Response examples (200)
{
  "accessToken": "string",
  "tokenType": "bearer",
  "expiresIn": 3600
}
Response examples (401)
{
  "detail": "Invalid client credentials"
}