Skip to content

Docs / All tools / Loop II: Acquisition

outbound.mail.domain_check

Check a sending domain's SPF, DKIM, DMARC, and related settings.

0 credits. Free: setup.

Example prompt

Send this to your AI app when Heelo is connected:

Check that mail.example.com is ready to send e-mail.

Input fields

FieldTypeDescription
domainRequiredstringThe sending domain to check, for example mail.example.com: a DNS name without a scheme or a mailbox.
dkim_selectorstringThe DKIM selector: the check reads <selector>._domainkey.<domain>.
from_domainstringThe domain of the From address, when it is not domain. Alignment fails when they differ.
sending_ipstringThe IP address the mail leaves from. The spf and ptr signals need it: without it, ready_to_send is false.
smtp_hoststringThe SMTP host that sends the mail. The spf and tls signals need it: without it, ready_to_send is false.

Code

The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.

import os
import requests

response = requests.post(
    "https://toolsprimitives.uk/v1/tools/outbound.mail.domain_check/invoke",
    headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
    json={"input": {
        "domain": "example.com",
    }},
    timeout=120,
)
response.raise_for_status()
print(response.json())