API documentation

Auth

Generate a token for API access

post/api/auth/login

Rate limit: 5 requests per minute

Request

Authentication

Send the clientId and clientSecret provided by Declarium in the JSON request body to obtain an access token.

Alternatively, call protected API endpoints directly with a static API key provided by Declarium. Both the API key and the login token are sent in the Authorization: Bearer <token> header.

Request body

application/json
clientIdstringRequired

client id (provided by Declarium)

clientSecretstringRequired

client secret (provided by Declarium)

Responses

Access token (valid for 15 minutes)

application/json
Response valuestring