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

# Add custom domain

`POST /api/v1/domain/custom`

Add custom domain.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: May mutate server state.

## Headers

- `Accept` string

## Response `201`

Created

- DNSSetupResponse — DNSSetupResponse schema
  - `data` object, nullable
    - `created_at` string, date-time
    - `deleted_at` string, date-time, nullable
    - `dns_provider` string, nullable
    - `id` string, uuid
    - `name` string
    - `organization_id` string, uuid
    - `status` string
    - `target_subdomain` string, nullable
    - `type` string
    - `updated_at` string, date-time
    - `user_id` string, uuid
    - `verification_token` string, nullable
  - `dns_provider` string
  - `instructions` object[]
    - `description` string
    - `name` string
    - `record_type` string
    - `value` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.net/nixopus/apis/openapi.md) · [All operations](https://skmtc.net/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/c5bacaea7239/schema)
