Skip to main content
POST
/
auth
/
token
Obtain Access Token
curl --request POST \
  --url https://whilter-api-host/auth/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "<string>",
  "client_secret": "<string>"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600
}

Body

application/json
client_id
string
required

Client ID for authentication

client_secret
string
required

Client Secret for authentication

Response

AccessToken generated successfully

access_token
string
required

JWT access token

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
string
required

Type of token

Example:

"Bearer"

expires_in
integer
required

Token expiration time in seconds

Example:

3600