---
title: "Add custom domain"
method: POST
path: "/docs/${docId}/domains"
tags: ["CustomDocDomains"]
---

# Add custom domain

`POST /docs/${docId}/domains`

Add a custom domain to a published doc.

## Path parameters

- `docId` string, required

## Request body

- AddCustomDocDomainRequest — Payload for adding a custom published doc domain.
  - `customDocDomain` string, required — The custom domain.

## Response `202`

Confirmation that the custom domain was added to the doc.

- AddCustomDocDomainResponse — The result of adding a custom domain to a published doc.

## Other responses

- `401` — The API token is invalid or has expired.
- `403` — The API token does not grant access to this resource.
- `404` — The resource could not be located with the current API token.
- `429` — The client has sent too many requests.

---

[API](https://skmtc.net/coda/apis/superhuman-docs-api.md) · [All operations](https://skmtc.net/coda/apis/superhuman-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coda/superhuman-docs-api/revisions/22273737ad50/schema)
