API (tenant) tokens

Create client credentials token

This route creates a tenant API token. Send the tenant’s ID in the frontegg-tenant-id header. Optionally, send as POST body params values for metadata, description, roles, and permissions for the token.</br></br>You can get roles & permissions via API

post/resources/tenants/api-tokens/v2

Request

Headers

frontegg-tenant-idstring required

The tenant ID identifier

Request body

metadataobject

Extra data that will be encoded as part of the JWT

descriptionstring
roleIdsstring[]

Array of role ids. Either this or permissionIds must be provided, but not both.

permissionIdsstring[]

Array of permission ids. Either this or roleIds must be provided, but not both. roleIds will override permissionIds.

Response

clientIdstring required
descriptionstring nullable required
tenantIdstring required
secretstring required
createdByUserIdstring nullable required
metadataobject required

Extra data that will be encoded as part of the JWT

createdAtstring date-time required
permissionIdsstring[]

Array of permission ids

roleIdsstring[]

Array of role ids

expiresstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.