---
title: "Create Domain"
method: POST
path: "/organizations/domains/"
tags: ["Organizations"]
---

# Create Domain

`POST /organizations/domains/`

Create a new domain for verification.

This endpoint initiates the domain verification process by:
1. Creating a domain record
2. Generating a unique verification token
3. Returning DNS configuration instructions

The user must add a DNS TXT record to verify ownership.

## Request body

- OrganizationDomainCreate — Request model for creating a domain.
  - `name` string, nullable
  - `description` string, nullable
  - `domain` string, required

## Response `200`

Successful Response

- OrganizationDomainResponse — Response model for a domain.
  - `id` string, uuid, required
  - `slug` string, required
  - `name` string, nullable, required
  - `description` string, nullable, required
  - `flags` object, required
  - `token` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required
  - `organization_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-08** `5e6f53ce5d08` — 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added
- **2026-02-13** `72fe88316d15` — 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/organizations/domains/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.dev/agenta-ai/apis/agenta-api/revisions/d7f672b2be20?raw)
