Skip to content
ToolsOnDuty - free online tools
Browse documentation

Reference / Email

Email API

2 endpoints for email workflows. Every call requires bearer authentication and uses the standard ToolsOnDuty response envelope.

Try it

Runs a real request from your browser to your own ToolsOnDuty account. Your key is only kept in this page and is never stored.

POST/v1/email/analyze-headers1 credit / call

Email header analyzer

Parse supplied raw email headers, summarize reported SPF/DKIM/DMARC results, reconstruct Received hops and flag common sender-domain mismatches. This does not query DNS or independently verify signatures.

ParameterTypeRequiredDescription
rawstringYesRaw email headers, optionally followed by the message body.

Request

curl -X POST https://toolsonduty.com/api/v1/email/analyze-headers \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"raw":"From: Billing <[email protected]>\nReply-To: [email protected]\nAuthentication-Results: mx.example; spf=pass; dkim=pass; dmarc=pass\nMessage-ID: <[email protected]>"}'

Response

{
  "ok": true,
  "data": {
    "authentication": {
      "spf": "pass",
      "dkim": "pass",
      "dmarc": "pass"
    },
    "route": [],
    "signals": [
      {
        "level": "warning",
        "title": "Reply-To domain differs from From"
      }
    ]
  }
}
POST/v1/email/generate-signature1 credit / call

Professional email signature generator

Generate escaped, table-based email signature HTML with professional templates, contact details, HTTPS social links, an optional CTA and one optional logo.

ParameterTypeRequiredDescription
namestringYesDisplay name.
pronounsstringNoOptional pronouns displayed beside the name.
rolestringNoJob title or role.
departmentstringNoDepartment or team.
companystringNoCompany or organization.
taglinestringNoOptional short professional tagline.
emailstringNoContact email address.
phonestringNoMobile or primary phone number.
officePhonestringNoOptional office phone number.
websitestringNoHTTPS website URL.
addressstringNoOffice or mailing address.
linkedinstringNoHTTPS LinkedIn profile URL.
xstringNoHTTPS X profile URL.
facebookstringNoHTTPS Facebook profile URL.
instagramstringNoHTTPS Instagram profile URL.
templatestringNomodern | executive | compact. Default: modern.
accentstringNoSix-digit accent hex color. Default: #4f46e5.
ctaLabelstringNoOptional call-to-action label.
ctaUrlstringNoOptional HTTPS call-to-action URL.
disclaimerstringNoOptional legal disclaimer text.
environmentalNoticestringNoOptional environmental notice.
logoUrlstringNoOptional HTTPS or data-image logo source.
logoAltstringNoAccessible alternative text for the logo.
logoPlacementstringNotop | left | right | bottom. Default: left.
logoWidthnumberNoLogo width from 24 to 320 pixels. Default: 96.
logoLinkUrlstringNoOptional HTTPS destination when the logo is clicked.

Request

curl -X POST https://toolsonduty.com/api/v1/email/generate-signature \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"name":"Alex Morgan","role":"Product Designer","company":"Example Studio","email":"[email protected]","website":"https://example.com","template":"modern","accent":"#4f46e5"}'

Response

{
  "ok": true,
  "data": {
    "html": "<table role=\"presentation\" ...>...</table>",
    "template": "modern",
    "imageCount": 0
  }
}