---
title: "Build an automatic Custom Tracking Domain apply URL"
method: POST
path: "/v1/email/domains/{id}/custom-tracking/domain-connect/apply-url"
tags: ["Email"]
---

# Build an automatic Custom Tracking Domain apply URL

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

## Request

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

Builds the signed Domain Connect URL for the current customer-selected tracking host. Samva fills in the host and the certificate validation record; the manual CNAME records remain available.

## Path parameters

- `id` string, 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)
