POST
/
v1
/
auth
/
token
Create Token
curl --request POST \
  --url https://public.api.serval.com/v1/auth/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=client_credentials
{
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/x-www-form-urlencoded

Response

200
application/json

Success

The response is of type object.