For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Endpoint that allows creation of [project API tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys#api-token-visibility) for the specified project.
Endpoint that allows creation of project API tokens for the specified project.
Authentication
Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format
A client or frontend token. Must be one of the strings “client” (deprecated), “backend” (preferred over “client”) or “frontend” (not case sensitive).
tokenNamestringRequired
A unique name for this particular token
environmentstringOptionalDefaults to default
The environment that the token should be valid for. Defaults to "default".
expiresAtstringOptionalformat: "date-time"
The date and time when the token should expire. The date should be in ISO 8601 format.
Response headers
locationstring
The location of the newly created resource.
Response
The resource was successfully created.
secretstring
The token used for authentication.
tokenNamestring
A unique name for this particular token
typeenum
The type of API token
Allowed values:
projectslist of strings
The list of projects this token has access to. If the token has access to specific projects they will be listed here. If the token has access to all projects it will be represented as [*]
createdAtstringformat: "date-time"
When the token was created.
environmentstringDefaults to development
The environment the token has access to.
projectstring
The project this token belongs to.
expiresAtstring or nullformat: "date-time"
The token's expiration date. NULL if the token doesn't have an expiration set.
seenAtstring or nullformat: "date-time"
When the token was last seen/used to authenticate with. NULL if the token has not yet been used for authentication.
aliasstring or null
Alias is no longer in active use and will often be NULL. It's kept around as a way of allowing old proxy tokens created with the old metadata format to keep working.