Request Defaults
This section describes common rules and parameters used in API requests within the Gaijin Application Platform.
Request Method
By default, all API endpoints use the POST method unless specified otherwise.
In most cases, request parameters are sent in the request body as a JSON object.
Request Parameters
Most requests validate the combination of jwt and
factor. If the service cannot use a
factor, a signed
service_jwt can be provided instead.
Warning
Passing jwt, factor, and service_jwt in the request body is deprecated.
Use the corresponding HTTP headers instead.
jwt string required
The JWT token of the user performing the action.
factor string conditionally required
The device factor associated with the user’s JWT (obtained from SSO). Required if
service_jwtis not provided.service_jwt string conditionally required
The static or generated service JWT, used when
factoris not provided.
HTTP Headers (Recommended)
The jwt, factor, and
service_jwt parameters should be passed as
HTTP headers. Passing them in the request body is supported during the
transition period. If both are provided, the header value takes priority.
| Body parameter | HTTP header |
|---|---|
jwt |
Authorization: Bearer <token> |
factor |
Factor or X-Client-Id |
service_jwt |
Service-Jwt |
Response Parameters
All responses are returned in JSON format.