Create an API key
Create an organization or subaccount API key. The secret is returned once in the response. To rotate a key, create its replacement first, cut traffic over, then revoke the old key — key prefixes identify which key made a request.
Authentication
AuthorizationBearer
Use Bearer <api-key>.
Request
This endpoint expects an object.
expiresAt
name
Customer-facing resource name. 1–200 characters.
scopes
subaccountId
Opaque identifier for a BCTRL subaccount.
Response
Created
data
secret
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
429
Too Many Requests Error

