---
title: "Create organizations"
method: POST
path: "/admin/simple/accounts/organizations/"
tags: ["Admin"]
---

# Create organizations

`POST /admin/simple/accounts/organizations/`

## Request body

- AdminSimpleAccountsOrganizationsCreate
  - `options` AdminAccountCreateOptions
    - `dry_run` boolean, nullable
    - `idempotency_key` string, nullable
    - `create_identities` boolean, nullable
    - `create_api_keys` boolean, nullable
    - `return_api_keys` boolean, nullable
    - `seed_defaults` boolean, nullable
    - `reason` string, nullable
  - `organization` AdminOrganizationCreate, required
    - `name` string, required
    - `slug` string, nullable
    - `owner_user_ref` EntityRef — Polymorphic reference that can point to a request-local key, an existing persisted ID, a stable slug, or an email address. Exactly one field must be set.
      - `ref` string, nullable
      - `id` string, nullable
      - `slug` string, nullable
      - `email` string, nullable
    - `metadata` object, nullable
  - `owner` AdminUserCreate
    - `email` string, required
    - `username` string, nullable
    - `name` string, nullable
    - `is_admin` boolean, nullable
    - `is_root` boolean, nullable
    - `metadata` object, nullable

## Response `200`

Successful Response

- AdminAccountsResponse
  - `accounts` AdminAccountRead[]
    - `users` object
    - `user_identities` object
    - `organizations` object
    - `workspaces` object
    - `projects` object
    - `organization_memberships` object
    - `workspace_memberships` object
    - `project_memberships` object
    - `subscriptions` object, nullable
    - `api_keys` object, nullable
  - `errors` AdminStructuredError[], nullable
    - `code` string, required
    - `message` string, required
    - `details` object, nullable

## Other responses

- `422` — Validation Error

## Changes

> 359 revisions in range; 4 could not be searched.

- **2026-05-08** `5e6f53ce5d08` — 2 breaking, 3 info
  - removed `#/components/schemas/AdminAccountCreateOptionsDTO` from the `options` request property `anyOf` list
  - removed `#/components/schemas/AdminUserCreateDTO` from the `owner` request property `anyOf` list
  - api operation id `admin_create_organization` removed and replaced with `create_organization_admin_simple_accounts_organizations__post`
  - added `#/components/schemas/AdminAccountCreateOptions` to the `options` request property `anyOf` list
  - …1 more
- **2026-04-16** `8b06b786c977` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/admin/simple/accounts/organizations/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/713e4f3b7519/schema)
