Get access token API Reference
const url = 'https://api.kupe.cloud/api/v1/tenants/acme/registries/registry/tokens/rt-0a1b2c3d4e5f6a7b';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/rt-0a1b2c3d4e5f6a7b \ --header 'Authorization: <Authorization>'Retrieve an access token or login session: its name, kind, access, creator, expiry, registry username (once issued), when it was last used, and its phase. The secret is never returned.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Tenant name
Registry name: always registry
Token id: rt- and 16 hex characters
Responses
Section titled “ Responses ”The access token or login session
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
{ "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 token id
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"}Token not found for this registry
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"}