---
title: "Create an organization"
method: POST
path: "/api/organizations"
tags: ["Organizations"]
---

# Create an organization

`POST /api/organizations`

Create a new organization with the given data.

## Request body

- object
  - `tenantId` string
  - `name` string, required — The name of the organization.
  - `description` string, nullable — The description of the organization.
  - `customData` object — arbitrary
  - `isMfaRequired` boolean
  - `color` object
    - `primaryColor` string, regex
    - `isDarkModeEnabled` boolean
    - `darkPrimaryColor` string, regex
  - `branding` object
    - `logoUrl` string, url
    - `darkLogoUrl` string, url
    - `favicon` string, url
    - `darkFavicon` string, url
  - `customCss` string, nullable
  - `createdAt` number

## Response `201`

The organization was created successfully.

- object
  - `tenantId` string, required
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `customData` object, required — arbitrary
  - `isMfaRequired` boolean, required
  - `color` object, required
    - `primaryColor` string, regex
    - `isDarkModeEnabled` boolean
    - `darkPrimaryColor` string, regex
  - `branding` object, required
    - `logoUrl` string, url
    - `darkLogoUrl` string, url
    - `favicon` string, url
    - `darkFavicon` string, url
  - `customCss` string, nullable, required
  - `createdAt` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Content

---

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