Authorization header. Tokens are scoped to a specific organization — the token you use determines which organization’s data is returned.
Get an access token
ClearPolicy uses the OAuth 2.0 client credentials flow. To create an OAuth client and issue a token:Create an OAuth client
Click Create OAuth Client. Give it a name and save. You’ll receive a client ID and client secret — store these securely.
Pass the token in requests
Include the token in theAuthorization header of every API request:
Error responses
| Status | Meaning |
|---|---|
401 Unauthorized | The token is missing, expired, or invalid. |
403 Forbidden | The token is valid but lacks permission for the requested resource. |
Tokens are organization-scoped. Each OAuth client is tied to a single organization, and all API responses reflect that organization’s data.