Create Users Token
As a workspace admin, you can create temporary authentication tokens for users. This is the same type of session authentication token a user gets via Login and expires the same way.
To use this endpoint, you must add the environment variable
CREATE_TOKENS_FOR_USERS=true
in your compose file.For SaaS workspaces, contact support to set this variable.
You are required to have the user-generate-access-token
permission.
For example, if you use Snaps to deploy, set the environment variable as shown below:
HTTP Method | URL | Requires Auth |
---|---|---|
|
|
Body Parameters
Key | Example Value | Description |
---|---|---|
|
| The ID or username of the user. |
Example Call
With userId
:
With username
:
Example Response
Change Log
Version | Description |
---|---|
2.1.0 | Added ENV VAR to be able to use this endpoint (process.env.CREATE_TOKENS_FOR_USERS). |
0.56.0 | Added |
Last updated