SnozeDevelopers
API referenceAdmin

Claim the first platform admin account

Promotes the calling user to the owner admin, but only while no admin account exists. The count and the insert share an advisory lock, so exactly one concurrent caller wins and the rest are rejected as bootstrap-closed. Requires a signed-in user with a verified email address, and writes a critical audit event.

POST
/v1/admin/bootstrap-owner
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/admin/bootstrap-owner"
{  "data": {    "id": "string",    "email": "string",    "displayName": "string",    "role": "owner",    "status": "active",    "createdAt": "string",    "activatedAt": "string"  }}