---
title: "Create a custom domain"
method: POST
path: "/scope_domain"
tags: ["Custom domain"]
---

# Create a custom domain

`POST /scope_domain`

Create a custom domain for a scope.

## Request body

- ScopeDomainCreate
  - `scope_id` string, required — The scope ID that the custom domains is associated with..
  - `name` string, required — The name of the custom domain.
  - `type` 'scope', required — The type of the domain.

## Response `204`

The operation was successful.

- ScopeDomainResponse
  - `id` string, required — The application-wide unique ID for the custom domain.
  - `name` string, required — The name of the custom domain.
  - `type` string, required — The type of the domain.
  - `selector` object — The selector for the custom domain.
    - `organization_id` string — The organization ID.
    - `nrn` string — The NRN of entity.
    - `scope_id` string — The scope ID that the custom domains is associated with..
  - `status` 'active' | 'pending' — The status of the domain.
  - `created_at` string, date-time — The ISO-8601 UTC timestamp of when the custom domain was created.
  - `updated_at` string, date-time — The ISO-8601 UTC timestamp of when the custom domain was last updated.

## Other responses

- `4XX` — Client error responses due to invalid input or missing parameters.
- `5XX` — Server error responses indicating an issue on the API side.

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) · [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nullplatform/nullplatform-api/revisions/1c4ea154b159/schema)
