---
title: "Create a new organization"
method: POST
path: "/organizations"
tags: ["Organizations"]
---

# Create a new organization

`POST /organizations`

Creates a new organization with the authenticated user as its single owner.

## Request body

- CreateOrganizationRequest — Request payload for creating a new organization
  - `name` string, required — Name for the new organization

## Response `201`

Organization successfully created

- Organization — Organization details including ID and name
  - `id` string, required
  - `name` string, required — Human-readable name of the organization
  - `status` OrganizationStatus, required
    - `status` 'enabled' | 'disabled', required — Indicates whether the organization is active, it's computed as `!disabled_by_admin AND billing_status == 'ok'`
    - `disabled_by_admin` boolean, required — Indicates if the organization has been disabled by an admin
    - `admin_reason` string — Reason for the current admin status
    - `billing_status` 'ok' | 'no_payment_method' | 'invoice_overdue' | 'unknown' | 'deletion_requested', required — Indicates the status of the organization from a billing perspective
    - `billing_reason` string — Reason for the current billing status
    - `usage_tier` 't1' | 't2', required — Usage tier of the organization. t1 is the default for new organizations, t2 is assigned when a valid payment method is on file.
    - `last_updated` string, date-time, required — Timestamp of the last update to the organization's status
    - `created_at` string, date-time — Timestamp when the organization was created
  - `marketplace` 'aws' — Marketplace provider associated with an organization.

## Other responses

- `400` — Error returned when the request is malformed or contains invalid parameters
- `401` — Error returned when authentication or authorization fails
- `404` — Generic error response
- `5XX` — Unexpected Error

---

[API](https://skmtc.net/xataio/apis/xata-api.md) · [All operations](https://skmtc.net/xataio/apis/xata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xataio/xata-api/revisions/8c088888aa42/schema)
