Start domain verification
const url = 'https://api.pingram.io/domains/example/start-verification';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.pingram.io/domains/example/start-verification \ --header 'Authorization: Bearer <token>'Start verification for a domain already on this account, so you can send from addresses on it. Publish the DNS records first. This also checks the tracking subdomain and keeps setting it up. Call it again any time. If verification has already started, this still checks the tracking subdomain and returns the domain as it is now.
Authorizations
Parameters
Path Parameters
Sender domain (URL encoded)
Responses
200
Successful response
object
What is still missing before new mail can use the tracking subdomain.
Keyed by record id — computed on domain API responses, not stored in DB.
object
DNS record the customer must publish for domain verification.
object
Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing).
Full hostname (e.g. pingram._domainkey.testing.something.com).
DNS record the customer must publish for domain verification.
object
Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing).
Full hostname (e.g. pingram._domainkey.testing.something.com).
DNS record the customer must publish for domain verification.
object
Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing).
Full hostname (e.g. pingram._domainkey.testing.something.com).
DNS record the customer must publish for domain verification.
object
Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing).
Full hostname (e.g. pingram._domainkey.testing.something.com).
DNS record the customer must publish for domain verification.
object
Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing).
Full hostname (e.g. pingram._domainkey.testing.something.com).
DNS record the customer must publish for domain verification.
object
Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing).
Full hostname (e.g. pingram._domainkey.testing.something.com).
Subdomain recipients see on click tracking, the open pixel, and the unsubscribe page, such as links.
Whether tracked links on this subdomain are not started, waiting, active, or failed.
Why tracked links on this subdomain are not active, when setup did not succeed.
Example
[ { "status": "SUCCESS", "mailFromDomainStatus": "PENDING", "verificationRecords": { "dkim": { "recordType": "TXT" }, "mail_from_spf": { "recordType": "TXT" }, "mail_from_mx": { "recordType": "TXT" }, "dmarc": { "recordType": "TXT" }, "inbound_mx": { "recordType": "TXT" }, "trackingCname": { "recordType": "TXT" } }, "trackingStatus": "NOT_STARTED", "trackingFailureReason": "cname_missing" }]400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}