Organizations and Projects

Create organization

Changed on

Creates the organization and its local default resources atomically. An idempotency key determines the proposed organization ID; replaying it returns the existing organization even if the retry body differs, and the retry body is not applied. Without a key, each request is a fresh attempt. Optional default-provider provisioning begins after commit and retries asynchronously without failing organization creation.

post/orgs

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Headers

Idempotency-Key, string

Idempotency key for replay-safe mutating requests.

Request body

CreateOrganizationRequest required
name, string required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

budgets, BudgetAttachment[]

Budgets for the new organization, created atomically with it, one per interval. Replay never adds budgets.

Response

Idempotent replay of an existing organization creation.

CreateOrganizationResponse required
org, Organization required

The newly created organization.

project, Project required

Default project created along with the organization.

membership, OrganizationMembership required

The caller's owner membership in the new organization.

Changes

    • info

      added the new optional request property budgets

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    157 more changes in this revision