SnozeDevelopers
API referenceAdmin

Invite a platform admin

Creates or re-enables a platform admin account for an email address and returns it. Platform admins only, and owner-only while the `require-owner-for-admin-invites` policy is on; a request without an email address is rejected as a validation error. Idempotent by email: inviting an address that is already an active admin returns the existing record.

POST
/v1/admin/admins
AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/admin/admins" \  -H "Content-Type: application/json" \  -d '{    "email": "string"  }'
{  "data": {    "id": "string",    "email": "string",    "displayName": "string",    "role": "owner",    "status": "active",    "createdAt": "string",    "activatedAt": "string"  }}