---
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

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

- **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-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/713e4f3b7519/schema)
