---
title: "Build a one-click DNS apply URL"
method: POST
path: "/v1/email/domains/{id}/domain-connect/apply-url"
tags: ["Email"]
---

# Build a one-click DNS apply URL

`POST /v1/email/domains/{id}/domain-connect/apply-url`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/email/domains/{id}/domain-connect/apply-url`
- Auth: API key in header `x-api-key`

Builds the signed Domain Connect apply URL for the selected sending-only or sending-and-receiving service. The sending-and-receiving service writes the apex inbound MX, so it is refused until the domain's receiving is enabled. Manual DNS remains available for either mode.

## Path parameters

- `id` string, required

## Request body

- object
  - `mode` 'send-only' | 'send-and-receive', required

## Response `200`

DomainConnectApplyUrlResult

- DomainConnectApplyUrlResult
  - `url` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError
- `500`: InternalError
- `502`: EmailChannelError
- `504`: GatewayTimeoutError

---

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