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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.snoze.dev/v1/admin/bootstrap-owner'
Example Response
{  "data": {    "id": "string",    "email": "string",    "displayName": "string",    "role": "owner",    "status": "active",    "createdAt": "string",    "activatedAt": "string"  }}