Issue a key: its secret is shown this once
Needs the plan's API access and room under its key limit. Explicit org permissions are capped by the maker's current membership on every call. A key cannot manage credentials, ownership, deletion or account-level operations.
/v1/orgs/{orgId}/api-keysNeeds the plan's API access and room under its key limit. Explicit org permissions are capped by the maker's current membership on every call. A key cannot manage credentials, ownership, deletion or account-level operations.
Authorization
synq A Synq access token for this API: bnc.read for reads, bnc.write for changes.
In: header
Path Parameters
The organization's id
^org_[0-9a-hjkmnp-tv-z]{26}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/orgs/string/api-keys" \ -H "Content-Type: application/json" \ -d '{ "permissions": [], "name": "Acme", "expiresAt": "2026-10-21T12:00:00.000Z", "ipAllowlist": [ "string" ] }'{ "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"}A new secret for a key; the old one keeps working for 24 hours POST
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.
Finish an upgrade once its card is added POST
After Stripe Checkout added the card an upgrade asked for (AERO-3835): makes it the subscription's card and moves the plan up at once, charging the prorated difference now, as the portal does. A declined card charges nothing, leaves the plan as it was and isn't kept; a bank that wants the payment confirmed gets Stripe's page for it, and nothing is charged unless the member confirms. Safe to call again: it charges once per checkout, whether this or Stripe's webhook finishes it first. Needs `subscription.edit`.