Skip to main content
POST
Create Token

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Body

application/json
grant_type
enum<string>
required

OAuth grant type

Available options:
client_credentials
Example:

"client_credentials"

client_id
string
required

Client ID for client_credentials token exchange

client_secret
string
required

Client secret for client_credentials token exchange

project_id
string<uuid>

Project ID (UUID) for scoped tokens

project_slug
string

Project slug for scoped tokens (alternative to project_id)

custom_domain
string

Custom domain to resolve project (alternative to project_id/project_slug)

options
object

Response

Token successfully generated

access_token
string
required

JWT access token

token_type
enum<string>
required

Token type

Available options:
Bearer
user
object
required

User information (empty object for client_credentials)