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.
| Plan | Active keys |
|---|---|
| Free, Pro | 1 |
| Team | 5 |
| Enterprise | Unlimited |
Permissions
Each key has two independent permissions, set when you create it and changeable afterwards:
| Permission | Values | Controls |
|---|---|---|
| Call models | on / off | Calling models through the API: POST /v1/chat/completions and GET /v1/models. |
| MCP access | Full, Read-only, Off | The 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
/v1/api-keysBearer tokenActive keys, with their prefix and hash only.
{
"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
/v1/api-keysBearer tokenCreate 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 }'{
"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
/v1/api-keys/{id}Bearer tokenChange 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
/v1/api-keys/{id}Bearer tokenRevoke a key immediately.
{ "revoked": true }Errors: 404 KEY_NOT_FOUND.
Verify a key
/v1/api-keys/verifyNo authCheck whether a key is valid. Used by model-serving services.
{ "key": "coaade_sk_Ab3x…" }{ "valid": true, "userId": "4b1c…", "keyId": "8d2e…" }An unknown or revoked key returns 401 with { "valid": false }. A successful check updates the key's lastUsedAt.