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

# Create organization

`POST /api/v1/organizations`

## Request

- Base URL: `https://app.easyscraper.com`
- URL: `https://app.easyscraper.com/api/v1/organizations`
- Auth: API key in cookie `better-auth.session_token`

Create an organization owned by the user and make it their active organization. Without a `slug`, a unique one is generated from its name

## Request body

- object
  - `name` string, required
  - `slug` string

## Response `200`

OK

- object
  - `id` string, uuid, required
  - `name` string, required
  - `slug` string, required
  - `logo` string, nullable, required
  - `metadata` string, nullable, required
  - `requireTwoFactor` boolean, required
  - `allowedEmailDomains` string[], required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: 400
- `401`: 401
- `409`: 409
- `429`: 429

## Changes

- **2026-11-02** `a12cef98c52b`: 1 info
  - added the non-success response with the status `400`
- **2026-10-31** `3e642e95991a`: 3 info
  - added the non-success response with the status `429`
  - added the required property `allowedEmailDomains` to the response with the `200` status
  - added the required property `requireTwoFactor` to the response with the `200` status
- **2026-10-09** `db32553c29a6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/easyscraper/apis/easy-scraper-api/changes/api/v1/organizations/post.md)

---

[API](https://skmtc.dev/easyscraper/apis/easy-scraper-api.md) - [All operations](https://skmtc.dev/easyscraper/apis/easy-scraper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/easyscraper/apis/easy-scraper-api/revisions/a12cef98c52b?raw)
