---
title: "Create Organization"
method: POST
path: "/api/v3/admin/organizations/"
tags: ["admin", "organizations"]
---

# Create Organization

`POST /api/v3/admin/organizations/`

## Request

- Base URL: `https://api.endless.health` (the document declares no server; this is the origin it was published from)
- URL: `https://api.endless.health/api/v3/admin/organizations/`
- Auth: none declared

## Request body

- OrganizationCreateRequestSchema
  - `name` string, required: Organization name
  - `identifier` string, required: Organization identifier in UPPER_SNAKE_CASE format (only uppercase letters, numbers, and underscores)
  - `configs` OrganizationConfigSchema
    - `auto_reorder_kit` boolean, nullable
    - `body_health` boolean, nullable
  - `api_key` string, nullable: API key for this organization (optional, will be auto-generated if not provided)
  - `organization_type` 'ENTITY' | 'SPONSOR' | 'CAMPAIGN': Discriminates the kind of organization row. ENTITY: standalone customer account. SPONSOR: parent account that runs one or more campaigns. CAMPAIGN: a child organization for a single screening program; requires parent_id.
  - `parent_id` integer, nullable: Parent organization id. Required for CAMPAIGN; the parent must not itself be a CAMPAIGN.
  - `active` boolean: Whether the organization is active on creation. Defaults to inactive.

## Response `201`

Successful Response

- OrganizationResponseSchema
  - `id` integer, required
  - `name` string, required
  - `identifier` string, required
  - `configs` object, required
  - `api_key` string, nullable, required
  - `organization_type` 'ENTITY' | 'SPONSOR' | 'CAMPAIGN', required: Discriminates the kind of organization row. ENTITY: standalone customer account. SPONSOR: parent account that runs one or more campaigns. CAMPAIGN: a child organization for a single screening program; requires parent_id.
  - `parent_id` integer, nullable, required
  - `active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/endless/apis/eh-core-v3-api-prod.md) - [All operations](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/endless/apis/eh-core-v3-api-prod/revisions/9046a1eb2d0c?raw)
