Developer Portal

Build email trust into anything

REST endpoints for email, domain, link and attachment scanning. Generate a key and try a live request below.

API keys

Generate a key to authenticate requests.

Productionkey_live_4f2a
184,320 calls
Sandboxkey_test_9c1b
12,044 calls

Usage this month

184,320of 200,000 included
  • POST /scan/email120,410
  • POST /scan/domain38,120
  • POST /scan/link18,900
  • POST /scan/attachment6,890

Try it live

Real request to POST /api/scan/domain (live DNS).

Endpoints

  • POST
    /api/scan/email

    Full email trust scan — verdict + all sub-scores.

  • POST
    /api/scan/domain

    Sender auth (SPF/DKIM/DMARC/BIMI/MTA-STS) + impersonation.

  • POST
    /api/scan/link

    Inspect one or more URLs for risk.

  • POST
    /api/scan/attachment

    Static attachment analysis (multipart or JSON).

  • GET
    /api/report/:id

    Retrieve a previously computed scan report.

  • GET
    /api/usage

    Quota, keys and usage by endpoint.

Authentication
# Pass your key as a Bearer token or x-api-key header
curl https://afriemail.com/api/scan/email \
  -H "Authorization: Bearer key_live_4f2a" \
  -H "content-type: application/json" \
  -d '{ "email": "From: ...\nSubject: ...", "domain": "example.com" }'