Skip to main content
POST
Create Identity Token

Authorizations

Authorization
string
header
required

An Account API key, an App API key, or a user API key. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

identity_token:create

Headers

Idempotency-Key
string

A unique key that makes this request safe to retry. See Idempotent requests.

Maximum string length: 255
Example:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Example:

"2026-11-30"

Body

application/json
audience
string
required

The service that verifies the token, as that service names itself. It becomes the aud claim. The service must reject a token with another audience. It must be a URL or a hostname, such as https://database.example.com or sts.amazonaws.com.

Maximum string length: 255
Example:

"https://database.example.com"

Response

an identity token was created

expires_at
string<date-time>
required

When the identity token expires, as an ISO 8601 timestamp.

Example:

"2026-01-01T12:00:00.000Z"

token
string
required

The identity token, a signed JWT. Send it to the service named in audience.

Example:

"eyJhbGciOiJIUzI1NiJ9.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"