---
title: "Create a Custom Domain"
method: POST
path: "/relays/{relay_id}/custom-domains"
tags: ["Core", "Relays"]
---

# Create a Custom Domain

`POST /relays/{relay_id}/custom-domains`

## Request

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

Creates a custom domain for the Relay

## Path parameters

- `relay_id` string, required

## Request body

- object
  - `customDomain` string, required: The customer managed domain to which requests to be relayed to your domain should be sent.

## Response `201`

The custom domain has been created

- CustomDomain
  - `id` string, required: The unique identifier for the custom domain.
  - `customDomain` string, required: The customer managed domain to which requests to be relayed to your domain should be sent.
  - `relay` string, required: The ID of the Relay with which this custom domain is associated.
  - `status` 'active' | 'inactive', required: The status of the domains DNS verification.
  - `validationRecord` string, uuidv4, required: Validation TXT record to be added on the `_ev-custom-relay` subdomain of your custom domain
  - `createdAt` integer, required: The exact time, in epoch milliseconds, when this custom domain was created.
  - `updatedAt` integer, required: The exact time, in epoch milliseconds, when this custom domain was last updated.

## Changes

- **2026-11-06** `8d0ca833fa04`: 7 info
  - the response property `createdAt` became required for the status `201`
  - the response property `customDomain` became required for the status `201`
  - the response property `id` became required for the status `201`
  - the response property `relay` became required for the status `201`
  - …3 more
- **2025-11-18** `30ea25af4354`: 1 info
  - api tag `Core` added

[Operation history](https://skmtc.dev/evervault/apis/evervault-api/changes/relays/:relay_id/custom-domains/post.md)

---

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