Skip to content

Verify a domain

Live emails must come from a domain you control and have verified. Verification proves ownership and sets up authentication (SPF, DKIM) so mailbox providers trust your mail.

1. Add the domain

Terminal window
curl -X POST https://api.sendbyte.africa/v1/domains \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"domain": "yourcompany.ng"}'

The response includes dns_records: the exact records to publish.

PurposeHostValueRequired
SPFyourcompany.ngv=spf1 include:spf.sendbyte.africa ~allYes
DKIMsb._domainkey.yourcompany.ngv=DKIM1; k=rsa; p=...Yes
DMARC_dmarc.yourcompany.ngv=DMARC1; p=none; rua=mailto:dmarc@sendbyte.africaRecommended

2. Publish the records

Add them as TXT records at your DNS host (Cloudflare, Route 53, your registrar). Propagation is usually minutes, occasionally up to an hour.

3. Check verification

Terminal window
curl -X POST https://api.sendbyte.africa/v1/domains/{domain_id}/verify \
-H "Authorization: Bearer sk_live_..."

The response shows a per-record pass/fail. When both required records pass, the domain flips to verified and live sending from any address at that domain works immediately. The dashboard does the same with one click.

Troubleshooting

  • SPF fails but I added it: check you don’t have two SPF records; merge them.
  • DKIM fails: some DNS hosts split long TXT values into chunks; that’s fine, we join them. Make sure the host is exactly sb._domainkey.yourdomain, not sb._domainkey.yourdomain.yourdomain.
  • Still pending after an hour: query your records directly with dig TXT sb._domainkey.yourcompany.ng and compare against the dashboard values.