Dawn
Dawn2mo ago

Specifying token id when creating a personal access token (PAT)

Similar to how it was recently added that the user_id and organization_id can be specified when creating a user or organization, respectively, is it possible (or are their plans) to allow a user to specify the token_id when creating a PAT?
2 Replies
Ask Inkeep
Ask Inkeep2mo ago
Hi @Dawn, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question. Answer There is no information in the available documentation or public discussions that indicates it is possible to specify the token_id when creating a personal access token (PAT) in ZITADEL. The API for creating a PAT generates the token_id automatically and does not provide an option to set it manually (1) . There are also no documented plans or roadmap notes suggesting this feature is planned (2) . ​ To learn more, see the sources I considered: [1] Create a Personal-Access-Token (PAT) [2] User api requests to resource API ​ Feel free to tag @Ask Inkeep with additional questions.
Rajat
Rajat2mo ago
hey @Dawn thanks for your question the token-id is always a server-generated UUID. The PAT creation call does not accept a custom id field, and there is no published roadmap item that does this.

Did you find this page helpful?