Rbac
Credentials
Project-Level
Create a project-level API token
Create a project-level API token associated with a Kargo Role virtual resource. Returns a Kubernetes Secret resource representing the token. Store it securely. The token is not retrievable via the Kargo API after creation except in a redacted form.
post/v1beta1/projects/{project}/roles/{role}/api-tokens
Request
- Base URLhttps://docs.kargo.io
- AuthAPI key in header Authorization
- TypeScripthttps://skmtc.dev/kargo/apis/kargo-api/docs/v1beta1/projects/:project/roles/:role/api-tokens/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
projectstring required
Project name
rolestring required
Role name
Request body
Response
Secret resource (k8s.io/api/core/v1.Secret)
Changes
No recorded changes to this operation across all 2 revisions of this API.