Skip to content

Authentication

Every protected route requires a Bearer JWT in the Authorization header:

Authorization: Bearer <token>

If the header is missing or invalid you get 401 Unauthorized.

Use the example below to get the token.

curl -sS -X POST "https://aware-api.invalid/api/auth/token" \
-H "Content-Type: application/json" \
-d '{"clientId":"YOUR_CLIENT_ID","clientSecret":"YOUR_CLIENT_SECRET"}'
{
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIs...",
"tokenType": "Bearer",
"expiresIn": 86400
}

In the API Reference, open Authorize and paste the token value. From code, send Authorization: Bearer <accessToken> on every /api/v1/* request.