palbaseDocs

Palbase Auth API · API

POST/oauth/token

OAuth 2.0 token endpoint

RFC 6749 §3.2. Grants: authorization_code (with PKCE S256), refresh_token (rotating), client_credentials, and device_code (RFC 8628). The client authenticates itself (HTTP Basic or client_secret_post; a public client by client_id and its PKCE verifier); no Palbase key.

Called by an OAuth client of the project; or anyone, with no key.

curl
curl -X POST "https://<your-ref>.palbase.studio/oauth/token" \
  -H "content-type: application/x-www-form-urlencoded" \
  --data-binary @file

Responses

200Tokens issued

400invalid_request, invalid_grant, unsupported_grant_type, authorization_pending, slow_down

401invalid_client

defaultAn OAuth 2.0 error (RFC 6749 §5.2).

Operation OauthToken of auth's contract.