curl https://api.sabaothcloud.com/api/v1/api-keys/KEY_ID \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"id": "6f1c2a7e-8a1d-4f53-9b0e-3c1d2e4f5a6b",
"name": "CI deploy key",
"key_prefix": "Qw8Rt2Lm",
"scopes": ["clusters:read", "clusters:write"],
"last_used_at": "2026-10-13T09:12:44Z",
"usage_count": 1284,
"expires_at": "2027-01-11T10:00:00Z",
"is_active": true,
"created_at": "2026-10-13T10:00:00Z"
}
{
"error": "NotFound",
"message": "API key not found"
}
API Keys
Get an API Key
Get one API key’s details
GET
/
api
/
v1
/
api-keys
/
{id}
curl https://api.sabaothcloud.com/api/v1/api-keys/KEY_ID \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"id": "6f1c2a7e-8a1d-4f53-9b0e-3c1d2e4f5a6b",
"name": "CI deploy key",
"key_prefix": "Qw8Rt2Lm",
"scopes": ["clusters:read", "clusters:write"],
"last_used_at": "2026-10-13T09:12:44Z",
"usage_count": 1284,
"expires_at": "2027-01-11T10:00:00Z",
"is_active": true,
"created_at": "2026-10-13T10:00:00Z"
}
{
"error": "NotFound",
"message": "API key not found"
}
Returns a key’s details and usage. The full key is never returned.
Path parameters
string
required
The key’s ID.
Response
200 OK
string
The key’s ID.
string
The key’s name.
string
The 8 characters after
mpg_.string[]
The key’s scopes.
string | null
When the key was last used, or
null if never.integer
How many requests the key has made.
string | null
When the key expires, or
null if it never does.boolean
false once the key is revoked.string
When the key was created.
curl https://api.sabaothcloud.com/api/v1/api-keys/KEY_ID \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"id": "6f1c2a7e-8a1d-4f53-9b0e-3c1d2e4f5a6b",
"name": "CI deploy key",
"key_prefix": "Qw8Rt2Lm",
"scopes": ["clusters:read", "clusters:write"],
"last_used_at": "2026-10-13T09:12:44Z",
"usage_count": 1284,
"expires_at": "2027-01-11T10:00:00Z",
"is_active": true,
"created_at": "2026-10-13T10:00:00Z"
}
{
"error": "NotFound",
"message": "API key not found"
}