App öffnen
Moonborn — API · api-keys

List API keys for the caller's organisation

GET/v1/api-keysscope · Bearer (API key or session JWT)
Query parameters
FieldTypeDescription
statusstring · "active" | "rotated" | "revoked" | "expired"Filter by key status.
workspaceIdstringNarrow to a specific workspace.
cursorstringOpaque pagination cursor; omit for the first page.
limitnumberPage size (1-100, default 20).

Responses

200Paginated list of API key summaries.
Body
FieldTypeDescription
itemsreqobject[]
nextCursorreqstring
401Unauthenticated.
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
error.detailsobject
403Forbidden — insufficient role.
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
error.detailsobject

Examples

cURL
curl -X GET https://api.moonborn.co/v1/api-keys \
  -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';

const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });

const result = await client.api_keys.listApiKeys();
Python
import os
from moonborn import Moonborn

client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])

result = client.api_keys.list_api_keys()