Moonborn — API · api-keys
List API keys for the caller's organisation
GET/v1/api-keysscope · Bearer (API key or session JWT)
Query parameters
| Field | Type | Description |
|---|---|---|
| status | string · "active" | "rotated" | "revoked" | "expired" | Filter by key status. |
| workspaceId | string | Narrow to a specific workspace. |
| cursor | string | Opaque pagination cursor; omit for the first page. |
| limit | number | Page size (1-100, default 20). |
Responses
200Paginated list of API key summaries.
Body
| Field | Type | Description |
|---|---|---|
| itemsreq | object[] | |
| nextCursorreq | string |
401Unauthenticated.
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string | |
| error.details | object |
403Forbidden — insufficient role.
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string | |
| error.details | object |
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()