latestOpenAPI 3.1.02026-08-1092916.0 KB

99b138ac9152

Accounts
public

Generate a custom token for a user

Generate a custom token for a user that can be used to authenticate.

Requires "*" permission on the organization and its children, and the "allowUserTokenManagement" flag to be enabled on the organization.

post/token/generate/

Headers

x-m2-organization-idstring required

The ID of an organization

Request body

userIdstring required

The user ID to generate a custom token for

Response

The response to generating a custom token

tokenstring required

The generated custom token