Create Token
Create a token for use across the API.
To obtain your Client ID and Client Secret, visit the API Settings page in your Serval dashboard.
Authentication
This endpoint uses HTTP Basic Authentication where:
- Username: Your Client ID
- Password: Your Client Secret
The Authorization header should contain Basic <base64-encoded-credentials>, where the credentials are client_id:client_secret encoded in base64.
Example Request
Or with explicit Basic auth header:
Using the Access Token
Once you receive the access token, use it in subsequent API requests:
Scoped keys
If your Client ID/Secret pair comes from a scoped API key, the resulting access token is restricted to that key’s scopes. This endpoint’s request/response shape is unchanged — scoping only affects which requests the token is later authorized to make.
Authentication and permissions
Token requirements: Organization-scoped API key or Workspace-scoped API key. Send the key’s client ID and secret using HTTP Basic to obtain a token. User-based OAuth tokens are not accepted here.
- Exchange public-key credentials: Use HTTP Basic with client ID and secret and grant_type=client_credentials.

