---
title: "Add a domain"
method: POST
path: "/v0/api/domains"
tags: ["Domains"]
---

# Add a domain

`POST /v0/api/domains`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/domains`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/domains/post.ts> (a function with typed inputs; its response is checked against the schema)

Adds a custom domain to an organization, optionally linked to a project group.

## Request body

- object
  - `organizationId` string, uuid, required
  - `domain` string, required
  - `projectGroupId` string, uuid, nullable

## Response `201`

Domain created

- object
  - `domain` object, required
    - `id` string, uuid, required
    - `domain` string, required
    - `vercelVerified` boolean, required
    - `vercelVerification` unknown
    - `projectGroup` object, nullable, required
      - `id` string, uuid, required
      - `name` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found — the referenced resource does not exist (including malformed resource IDs)

---

[API](https://skmtc.dev/anything/apis/anything-api.md) - [All operations](https://skmtc.dev/anything/apis/anything-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anything/apis/anything-api/revisions/1475488f3446?raw)
