Skip to Content

Build an automatic Custom Tracking Domain apply URL

Builds the signed Domain Connect URL for the current customer-selected tracking host.

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

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^dom_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

DomainConnectApplyUrlResult

application/json
  1. response
url*string
Example Request
import { createClient } from "samva";

const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });

const result = await samva.email.buildCustomTrackingDomainConnectApplyUrl({
  "id": "example"
});
Example Response
{
  "url": "string"
}

Related documentation