List API keys API Reference
GET
/tenants/{tenant}/apikeys
const url = 'https://api.kupe.cloud/api/v1/tenants/acme/apikeys';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/apikeys \ --header 'Authorization: <Authorization>'List all API keys for the tenant. Returns metadata only — the raw key value is only available at creation time and cannot be retrieved again. Admin only.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” tenant
required
string
Tenant name
Responses
Section titled “ Responses ”List of API keys
Media type application/json
object
items
Array<object>
object
createdAt
string
createdBy
string
displayName
string
expiresAt
string
id
string
lastUsedAt
string
role
string
Example
{ "items": [ { "createdAt": "2026-03-15T08:00:00Z", "createdBy": "alice@acme.com", "displayName": "CI/CD Pipeline", "expiresAt": "2027-01-01T00:00:00Z", "id": "ak-a1b2c3d4", "lastUsedAt": "2026-04-05T12:30:00Z", "role": "admin" } ]}Invalid tenant name
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Missing or invalid authentication
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Admin access required
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Rate limit exceeded
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}