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
| Field | Description |
|---|---|
keys | array of ApiKey |
{ "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.
| Status | error | When |
|---|---|---|
| 401 | unauthorized | Missing or invalid API key / session |
| 403 | forbidden | API key lacks the required scope |
| 500 | internal | Internal 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.
curl "https://api.simline.dev/v1/keys" \ -H "Cookie: simline_session=$SIMLINE_SESSION"const res = await fetch("https://api.simline.dev/v1/keys", { headers: { Cookie: `simline_session=${process.env.SIMLINE_SESSION}` }})if (!res.ok) { const err = await res.json() throw new Error(`${res.status} ${err.error}: ${err.message}`)}console.log(await res.json())import os
import requests
r = requests.get( "https://api.simline.dev/v1/keys", cookies={"simline_session": os.environ["SIMLINE_SESSION"]}, timeout=15,)if not r.ok: err = r.json() raise RuntimeError(f"{r.status_code} {err['error']}: {err['message']}")print(r.json())