Docs
Live demo
POST/api/v2/organizations
Signed-in sessionConsole session only

Create a new organization for multi-tenant access management. The caller becomes its first administrator (org_admin) in the same transaction, so the caller can open the organization with X-Organization-ID and add members. The caller may be a user or a service account. A session without an identity is refused with 403. A personal API token creates the organization for its owner and keeps working only in its own organization. An organization token is refused with 403 auth.api_token_not_allowed (details.reason=api_token_personal_only).

Console sessions and personal admin tokens only: organization tokens get 403 (api_token_personal_only).

Request body application/json · OrganizationRequest

Organization creation request

Required1 of 3 fields
namestringrequired
min length 1 · max length 100
Optional2 fields
descriptionstring
max length 1000
mfa_requiredboolean

Require a second factor from every member before a console session is issued. Omitted keeps the current policy.

Responses

201

Created

OrganizationResponse · 6 fields
created_atstring
descriptionstring
idstring
mfa_requiredboolean

True when the organization requires a second factor from every member.

namestring
updated_atstring
409

Conflict - organization already exists

Common errors: 400 401 403 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close