Obtain an API access token
Exchange the client_id and client_secret supplied by thepalia for a Bearer token valid for 24 hours. Reuse it in the Authorization header until expiry. Credential issuance is limited to 20 requests per minute per client IP. JSON, URL-encoded form, multipart form, and HTTP Basic credentials are accepted. With HTTP Basic, send Authorization: Basic base64(client_id:client_secret); no body is needed. Keep credentials in your server, never in participant-facing browser code.
Send credentials in a body, or omit the body and use HTTP Basic authentication.
- body
client_id*Client IdClient ID supplied by thepalia.
client_secret*Client SecretClient secret supplied by thepalia. Keep it on your server.
Access token issued.
application/json- response
access_token*Access TokenBearer access token, valid for 24 hours. Reuse until expiry.
token_type*Token TypeAuthorization scheme. The API returns Bearer.
curl -X POST 'https://api.staging.thepalia.de/v1/oauth/token' \ -H 'Content-Type: application/json' \ -d '{ "client_id": "YOUR_CLIENT_ID", "client_secret": "YOUR_CLIENT_SECRET"}'{ "access_token": "EXAMPLE_ACCESS_TOKEN", "token_type": "Bearer"}