EndpointsCreate organization

Organizations

Create organization

Creates an Organization. The authenticated person becomes its roles/owner. Retry with the same Idempotency-Key to receive the same Organization.

POST/organizations
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

Body

application/json
namestringrequired

Required string length: 1 - 50

Pattern: ^(?=.*\S)[^\p{Cc}\p{Zl}\p{Zp}]+$

Example: "Code Zero"

Response

application/json

Organization created

idstringrequired

Organization ID, org_<id>.

Required string length: 3 - 54

namestring | nullrequired

Null once the Organization is deleted: delete erases it at once.

Required string length: 1 - 50

Pattern: ^(?=.*\S)[^\p{Cc}\p{Zl}\p{Zp}]+$

Example: "Code Zero"

stateenum<string>required

deleted: soft-deleted until purge_at; afterwards the Organization is not found.

Available options: active, deleted

created_atintegerrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

updated_atintegerrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

deleted_atinteger | nullrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

purge_atinteger | nullrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

etagstringrequired

Pass as If-Match to delete only this version. OUTPUT_ONLY.

Maximum string length: 64