Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs

A new secret for a key; the old one keeps working for 24 hours

Issues a new secret for a key, shown once; the old secret keeps working for 24 hours. Needs `api_keys.edit` and a sign-in in the last 30 minutes.

POST/v1/orgs/{orgId}/api-keys/{keyId}/roll

Issues a new secret for a key, shown once; the old secret keeps working for 24 hours. Needs api_keys.edit and a sign-in in the last 30 minutes.

Authorization

synq
AuthorizationBearer <token>

A Synq access token for this API: bnc.read for reads, bnc.write for changes.

In: header

Path Parameters

orgId*string

The organization's id

Match^org_[0-9a-hjkmnp-tv-z]{26}$
keyId*string

The API key's id

Match^key_[0-9a-hjkmnp-tv-z]{26}$

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/orgs/string/api-keys/string/roll"
{  "key": {    "id": "key_01j3sa8pvcfp79z85hrb9y9xd6",    "name": "Acme",    "prefix": "bnc_live_ab12",    "status": "active",    "createdBy": "string",    "createdAt": "2026-10-21T12:00:00.000Z",    "lastUsedAt": "2026-10-21T12:00:00.000Z",    "expiresAt": "2026-10-21T12:00:00.000Z",    "revokedAt": "2026-10-21T12:00:00.000Z",    "ipAllowlist": [      "string"    ],    "permissions": [      "webhooks.view"    ]  },  "secret": "string"}