Skip to content

List live API keys

GET/v1/keysDashboard session

List live API keys (session only).

Authentication

Dashboard session only (the simline_session cookie). API keys can't call this endpoint: manage keys at app.simline.dev → Developers.

An API key always acts in its own workspace. With a dashboard session, pass ?workspaceId= to choose the workspace (default: your first).

Response

200 — Keys

FieldDescription
keysarray of ApiKey
200 example (values are illustrative)
{
"keys": [
{
"id": "key_Q1w2E3r4T5y6U7i8O9p0Aa",
"workspaceId": "ws_9yLm2Qx7Rk3sTb6Vh1Nc0A",
"name": "Production backend",
"prefix": "sl_live_Ab3d",
"scopes": [
"send"
],
"createdBy": "createdBy",
"createdAt": "2026-11-28T09:13:57.390Z",
"lastUsedAt": "2026-11-28T09:13:57.390Z"
}
]
}

Errors

Errors are JSON: {"error": "<code>", "message": "<a sentence>"}. Branch on error, show message. Every code is explained in Errors.

StatuserrorWhen
401unauthorizedMissing or invalid API key / session
403forbiddenAPI key lacks the required scope
500internalInternal error

Examples

This endpoint is for the dashboard. The examples use the session cookie for completeness; in practice, create and revoke keys at app.simline.dev → Developers → API keys.

Terminal window
curl "https://api.simline.dev/v1/keys" \
-H "Cookie: simline_session=$SIMLINE_SESSION"