circle-exclamation
This documentation is currently under development. Certain sections are not yet complete and will be added shortly.

Security

Generate JWT tokens from custom claims

post
/api/{tenantId}/tokens/generate

Creates one or more JWT tokens with custom claims for advanced authentication scenarios.

Use Cases

  • Testing and development

  • Service-to-service authentication

  • Custom identity workflows

  • Token migration scenarios

Authorization

Requires AuthenticationToken.Write scope - restricted to authorized administrators and services.

Validity Duration

  • Default: 10 years (3650.00:00:00.000)

  • Configurable via query parameter in TimeSpan format

  • Examples: 1.00:00:00 (1 day), 30.00:00:00 (30 days)

Request Format

Accepts an array of claim sets, where each set generates one token: [[{"type": "sub", "value": "user123"}, {"type": "email", "value": "[email protected]"}]]

Security Warning

Generated tokens have full authentication authority. Protect endpoint access and token distribution carefully.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Query parameters
validityDurationstringOptional

Optional validity duration in TimeSpan format (e.g., "1.00:00:00" for 1 day). Default is 10 years

Bodyobject[][]
typestring · nullableOptional

claim type

valuestring · nullableOptional

Value

valueTypestring · nullableOptional

optional value type

Responses
chevron-right
200

Tokens generated successfully.

string[]Optional
post
/api/{tenantId}/tokens/generate

Last updated