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
Require a second factor from every member before a console session is issued. Omitted keeps the current policy.
Responses
Created
OrganizationResponse · 6 fields
True when the organization requires a second factor from every member.
Conflict - organization already exists
Common errors: 400 401 403 413 429 503 504. They mean the same for every operation, see Errors.