Skip to Content
coaadedocs

API keys

Create, list, revoke and verify coaade_sk_ API keys.

API keys look like coaade_sk_ followed by 40 letters and digits. They authenticate the MCP server, model calls and the Desktop App's local API. Coaade stores only a SHA-256 hash, so the full key is returned once, when you create it.

PlanActive keys
Free, Pro1
Team5
EnterpriseUnlimited

Permissions

Each key has two independent permissions, set when you create it and changeable afterwards:

PermissionValuesControls
Call modelson / offCalling models through the API: POST /v1/chat/completions and GET /v1/models.
MCP accessFull, Read-only, OffThe MCP server. Full offers every tool, Read-only only tools that look, Off refuses the key.

A new key starts with Call models off, so keys made before this existed are MCP-only until you turn it on. A key needs at least one permission; one with neither is refused.

In the API these are the models (boolean) and scope ("full" | "read" | "none") fields below. Create and edit keys in the Coaade Console, in coaade.com Settings → API keys & MCP, or with the endpoints here.

List keys

GET/v1/api-keysBearer token

Active keys, with their prefix and hash only.

Response 200
{
  "keys": [
    {
      "id": "8d2e…",
      "name": "Default key",
      "keyPrefix": "coaade_sk_Ab3x",
      "keyHash": "9f86d08…",
      "scope": "full",
      "models": false,
      "lastUsedAt": "2026-11-10T18:02:11.000Z",
      "createdAt": "2026-10-02T14:30:00.000Z"
    }
  ],
  "used": 1,
  "limit": 1
}

limit is null when unlimited.

Create a key

POST/v1/api-keysBearer token

Create a key. The full key is in the response, and only there.

Prop

Type

curl -X POST https://api.coaade.com/v1/api-keys \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{ "name": "Production app", "scope": "none", "models": true }'
Response 201
{
  "id": "8d2e…",
  "name": "Production app",
  "key": "coaade_sk_Ab3x…",
  "keyPrefix": "coaade_sk_Ab3x",
  "scope": "none",
  "models": true,
  "keyHash": "9f86d08…",
  "createdAt": "2026-11-11T09:30:00.000Z"
}

Errors: 422 VALIDATION_ERROR, 403 KEY_LIMIT_REACHED (with limit and used).

Edit a key

PATCH/v1/api-keys/{id}Bearer token

Change a key's name or permissions. Send at least one of name, scope or models.

Prop

Type

curl -X PATCH https://api.coaade.com/v1/api-keys/8d2e… \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{ "models": true }'

Returns the updated key, with its prefix and hash only. The full key is never shown again.

Errors: 422 VALIDATION_ERROR (an invalid field, or nothing to change), 404 KEY_NOT_FOUND.

Revoke a key

DELETE/v1/api-keys/{id}Bearer token

Revoke a key immediately.

Response 200
{ "revoked": true }

Errors: 404 KEY_NOT_FOUND.

Verify a key

POST/v1/api-keys/verifyNo auth

Check whether a key is valid. Used by model-serving services.

Request
{ "key": "coaade_sk_Ab3x…" }
Response 200
{ "valid": true, "userId": "4b1c…", "keyId": "8d2e…" }

An unknown or revoked key returns 401 with { "valid": false }. A successful check updates the key's lastUsedAt.

On this page