List access tokens API Reference
const url = 'https://api.kupe.cloud/api/v1/tenants/acme/registries/registry/tokens?kind=token';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.kupe.cloud/api/v1/tenants/acme/registries/registry/tokens?kind=token' \ --header 'Authorization: <Authorization>'List the registry’s access tokens and login sessions, newest first. ?kind=token or
?kind=session lists one kind; without it, both. Secrets are never returned: a token’s secret is
shown once, when it is created. username is the registry username once the token is issued
(status.phase Ready). Every member can list. Served even while the platform has the registry
switched off.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Tenant name
Registry name: always registry
Query Parameters
Section titled “ Query Parameters ”Token or session
Responses
Section titled “ Responses ”Access tokens and login sessions
object
object
Access is pull, or push (which includes pull).
CreatedBy is the email of the member who created it; it is revoked when they leave the tenant.
ID is rt- and 16 hex characters.
Kind is token (an access token) or session (a login session from kupe registry login).
LastUsedAt is when the token last pulled or pushed, empty if never; read hourly at most.
object
object
Message gives detail while Pending or Failed; empty while Ready.
Phase is Pending until the token is issued, then Ready; Failed means it can never work: create a new one.
Username is the registry username, empty until the token is issued (status.phase Ready).
Example
{ "items": [ { "access": "pull", "createdAt": "2026-10-21T10:00:00Z", "createdBy": "alice@acme.com", "displayName": "GitHub Actions", "expiresAt": "2027-01-19T10:00:00Z", "id": "rt-0a1b2c3d4e5f6a7b", "kind": "token", "lastUsedAt": "2026-10-21T11:00:00Z", "status": { "message": "", "phase": "Pending" }, "username": "kupe+acme+tok-0a1b2c3d4e5f6a7b" } ]}Invalid name or kind
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Missing or invalid authentication
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Not a member of this tenant
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Registry not found
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Rate limit exceeded
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}