Request Format
Core APIs accept an HTTP POST request with a JSON body. Authenticate with a Service Access Token in theAuthorization header:
us.authlete.com with your cluster host (e.g. eu.authlete.com, jp.authlete.com) if you use a different region. See Authentication for how to obtain a Service Access Token.
Main Request Parameters
The exact set of request parameters differs per API and depends on which OAuth/OIDC specifications your service supports, so it cannot be fully generalized — always check the API Reference of the API you are calling. That said, the following parameters appear across many Core APIs:
Supporting additional specifications adds parameters accordingly — for example, DPoP (RFC 9449) adds
dpop, htm, and htu to token and introspection requests.
Pass Client Request Parameters As-Is
Your authorization server is expected to pass the parameters it receives at its authorization endpoint and token endpoint to the corresponding Authlete APIs as-is — you usually MUST NOT modify or pre-process them. For example, if you want to check the values of thescope parameter in an authorization request, you don’t have to verify them before invoking the /auth/authorization API. Instead, include the whole query string as the value of the parameters field. Authlete verifies the request and returns the validated scope values in its response, which your authorization server can then use safely.
Response Format
Core API responses share the following fields:
The
action field is the heart of the Core API programming model: it tells your authorization server what kind of HTTP response to return to the client, or which Authlete API to call next. See Action Handling for details.
Never branch your processing on
resultCode. Result codes are diagnostic information; the contract for what to do next is expressed solely by action.