POST
/
generate_access_token
{
  "client_id": "client123",
  "duration_secs": 3600,
  "metadata": {
    "user_name": "John Doe",
    "company": "Acme Corp"
  }
}
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 3600
}
Use your org-level API key (Bearer fl-xxxxxx) to create a JWT token for a specific client. The token can be used at client-facing endpoints.
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 3600
}
{
  "client_id": "client123",
  "duration_secs": 3600,
  "metadata": {
    "user_name": "John Doe",
    "company": "Acme Corp"
  }
}

Authorizations

Authorization
string
header
required

Org-level key (format: Bearer fl-xxxxx) used to manage client tokens.

Body

application/json

Response

200
application/json

Returns the newly generated token

The response is of type object.