Skip to content

Create an initial access token.

POST
/api/admin/iat-tokens
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/admin/iat-tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "Token for dynamic client registration.", "expiresInDays": 30, "single_use": true }'

Generates a new OAuth Dynamic Client Registration Initial Access Token, stores only its SHA-256 hash, and returns the plaintext token once. The token expires according to expiresInDays and may be marked single-use.

Media type application/json
object
description
string
<= 256 characters
expiresInDays
integer
default: 30 >= 1 <= 365
single_use
boolean
key
additional properties
Example
{
"description": "Token for dynamic client registration.",
"expiresInDays": 30,
"single_use": true
}

Initial Access Token creation response. The plain token is returned only once.

Media type application/json
object
token
required
string
tokenHash
required
string
description
required
string
expiresInDays
required
integer
single_use
required
boolean
message
required
string
key
additional properties
Example
{
"token": "9e7f5a1c...",
"tokenHash": "7f9c2ba4...",
"description": "Token for dynamic client registration.",
"expiresInDays": 30,
"single_use": true,
"message": "Token created successfully. Save this token securely - it will not be shown again."
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}