thepaliaDevelopers
OAuth

Obtain an API access token

POST
/v1/oauth/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.

Request Body

Send credentials in a body, or omit the body and use HTTP Basic authentication.

  1. body
client_id*Client Id

Client ID supplied by thepalia.

client_secret*Client Secret

Client secret supplied by thepalia. Keep it on your server.

Response Body

Access token issued.

application/json
  1. response
access_token*Access Token

Bearer access token, valid for 24 hours. Reuse until expiry.

token_type*Token Type

Authorization scheme. The API returns Bearer.

Example Request
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"}'
Example Response
{  "access_token": "EXAMPLE_ACCESS_TOKEN",  "token_type": "Bearer"}