Check one-click DNS eligibility

Reports whether the domain's DNS provider supports Domain Connect one-click setup for Samva, and the provider's name when it does.

GET
/v1/email/domains/{id}/domain-connect

Reports whether the domain's DNS provider supports Domain Connect one-click setup for Samva, and the provider's name when it does. Ineligible is a normal result — the manual DNS records remain the way to verify.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

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

Query Parameters

mode*string
Value in"send-only""send-and-receive"

Response Body

DomainConnectEligibility

application/json
  1. response
eligible*false
Value infalse
reason*string
Value in"no-record""no-settings""no-sync""no-template""unavailable"
Example Request
import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.email.getDomainConnect({  "id": "example",  "mode": "send-only"});
Example Response
{  "eligible": false,  "reason": "no-record"}

Related documentation