Build a one-click DNS apply URL

Builds the signed Domain Connect apply URL for the selected sending-only or sending-and-receiving service.

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

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

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

Request Body

application/json
  1. body
mode*string
Value in"send-only""send-and-receive"

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.buildDomainConnectApplyUrl({  "id": "example",  "mode": "send-only"});
Example Response
{  "url": "string"}

Related documentation