Create a token for use across the API
cURL
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 }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Success
The response is of type object.
object