Skip to main content

API Auth

OPTIONS /apiAuth

Purpose

Provides CORS support information for the endpoint.

Responses

Always 200 OK with CORS response headers.

POST /apiAuth

Purpose

Exchange an API key for a token to be used in further API queries.

Add the token to GraphQL queries using the HTTP headers:

  • Authorization: Bearer $token
  • Auth-Provider: apiKeyAuth

Payload

Type

JSON in body.

Parameters

ParameterRequiredTypeDescription
keyYesStringAPI key associated with an API user.

Responses

JSON body with a single property:

  • token: Token value to used for further API requests.