SocialHz Engineering · 1 December 2026

Your own API keys, made in a minute

GET /api/v1/keys · POST /api/v1/keys · PATCH /api/v1/keys/{id} · DELETE /api/v1/keys/{id}

What shipped

Every workspace now has an API keys page. Owners make a key for each app or server, give it a name, limit what it can do, and revoke it when it is no longer needed. The same four calls work from code.

Why

Customers had to write to us for a key and again to replace one. Teams with several services wanted a key per service, so that one could be revoked without stopping the others.

Make a key

Give it a name and, if you want, the scopes it may use: read (the workspace, runs, data and credits), runs (start and manage runs) and search (search platforms). The secret is in this answer only: copy it then, because we keep only a fingerprint of it.

POST /api/v1/keys
X-API-Key: <a key that may manage keys>

{ "label": "Brightleaf reporting server", "scopes": ["read", "search"] }

→ 201 { "key": "<shown once>",
        "record": { "id": "…", "label": "Brightleaf reporting server", "scopes": ["read", "search"], "active": true, "created_at": "…" },
        "note": "Copy this key now. It is shown once and can't be shown again." }

Good to know

  • GET /api/v1/keys lists the workspace's keys, newest first, with only each key's first characters, when it was last used, and the scopes you may give.
  • A key can never do more than whoever made it. A key with no scopes can do everything, so only a workspace owner can make one; anyone else must pick scopes they hold (403 scopes_required or scope_not_yours).
  • A workspace can have up to 20 working keys (409 too_many_keys). Revoke one you no longer use first.
  • PATCH renames a key; DELETE revokes it, and it stops working everywhere within about five seconds.
  • Every change is recorded in the workspace's history.

Request a feature

Tell us what you need on the updates page. The engineering team reads every request.

Search API reference · All engineering updates