BeaconBox
Esc

Type to search.

Dashboard

Create an API key

Generate a key. The full value is in this response and nowhere else, ever.

POST/api/v1/keys

Request

curl -X POST https://api.beaconbox.eu/api/v1/keys \
  -H "Authorization: Bearer $BEACONBOX_API_KEY" \
  -H "Content-Type: application/json"
  -d '{}'

Body

FieldTypeDescription
name
optional
string | null
detach
optional
booleanCreate the key with no parent, so revoking the key that created it leaves this one working. Use it to rotate: create a detached key, move your systems to it, then revoke the old key. Without it, the new key is revoked along with the key that created it.

Response

Returns 201.

FieldTypeDescription
idstring
namestring
keystring
maskedstring
createddate-time

Errors

Failures are { "error_code": "..." } with a stable dotted code. See Errors for the codes worth branching on and the three outcomes that look like failures and are not.