Get a project access token
Changed onReturns one token's metadata. Never its secret, which is not stored in a recoverable form.
Requires a platform token.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Path parameters
Project ID
Project access token ID
Response
Successful response
A project access token: a control-plane credential bound to a single project. Unlike a platform token, which acts on every project its owner has, this one is limited to the project it was created in.
The secret itself is never returned here. Only its hash is stored, so the plaintext exists solely in the response to the create call.
Unique per project.
First 12 characters of the secret, for recognising a token in a list.
What a project access token may do within its project.
full is everything you can do to that one project, up to and including deleting it. It cannot manage access tokens, so a leaked token cannot mint a replacement or erase the record of its own use, but for a CI or agent credential that only deploys, prefer read_only where the job allows it.
read_only refuses mutations. It is enforced by route classification rather than HTTP method, so the log and metrics query endpoints remain available even though they are POST requests that carry body filters.
read_only also refuses the reads that return a credential — service keys, anon keys, variable values, and database connection strings. Those grant write access over the project's data and keep working after the token that fetched them is revoked, so returning one to a read-only credential would make the scope a formality. An anon key is included because its permissions are chosen per key and may include uploading, deleting, and publishing.
revoked means the token was deliberately revoked, by you or by the deletion of its project. expired means it simply reached expires_at; nothing was taken away. Both are refused, and both keep their record so a token's name, prefix, last use, and request history remain available after a leak.
A token revoked before its expiry passed stays revoked, because that is the fact worth keeping.
What created the token.
Absent for a token that does not expire.
Updated at most once every few minutes, so it may lag slightly.
Requests authenticated with this token since it was created.
Changes
- info
endpoint added
- info