Authenticate to API; returns authentication (access) bearer token.
POST
https://<base_url>/v1/auth/token
"Content-Type: application/json"
{
"client_id": "<client_id>",
"client_secret": "<client_secret>"
}
{
"access_token": "string",
"expires_in": number
}
Field | Name | Type | Description |
---|---|---|---|
Access Token | access_token | string | Bearer Token |
Expiration | expires_in | number | Token expriation time in seconds |
curl --location --request POST 'https://example.com/v1/auth/token' \
--header "Content-Type: application/json" \
--data-raw '{
"client_id": "example_id",
"client_secret": "example_secret"
}'
{
"access_token": "example_token",
"expires_in": 12345
}