---
title: "Create an organization"
method: POST
path: "/api/v1/user/org"
tags: ["User"]
---

# Create an organization

`POST /api/v1/user/org`

MAX/Enterprise account mutation. The authenticated user becomes owner.

## Headers

- `X-CSRF-Token` string, required

## Request body

- UserOrganizationNameRequest
  - `name` string, required

## Response `201`

Organization created

- OrganizationCreatedResponse
  - `ok` boolean, required
  - `org_id` integer, required

## Other responses

- `400` — Invalid request
- `401` — Authentication required (no active session)
- `402` — Plan does not include teams
- `403` — Invalid CSRF
- `409` — User already belongs to an organization
- `503` — Organization service unavailable

---

[API](https://skmtc.net/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.net/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/versions/996f96a11758/schema)
