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

# Add a custom domain

`POST /v1/domains`

## Request

- Base URL: `https://api.agentboxd.com`
- URL: `https://api.agentboxd.com/v1/domains`
- Auth: HTTP bearer

`{ domain, receiving? }` → 201 with `status: "pending"` and the DNS `records` to publish. How many depends on the plan (Free 1, Builder 10, Team 50; `403 plan_limit_domains` past it). See [Custom domains](https://agentboxd.com/docs/custom-domains).

Permission: `domains:manage`.

## Request body

- object
  - `domain` string, required
  - `receiving` boolean

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

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