Skip to content

Revoke an API key

DELETE/v1/keys/{id}Dashboard session

Revoke an API key (session only).

Authentication

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

Parameters

NameInDescription
id
required
path

string

Response

204 — Revoked

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
404not_foundKey not found
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 -X DELETE "https://api.simline.dev/v1/keys/key_Q1w2E3r4T5y6U7i8O9p0Aa" \
-H "Cookie: simline_session=$SIMLINE_SESSION"