Skip to main content
POST
/
api
/
trigger
/
email
cURL
curl -X POST "https://app.cotool.ai/api/trigger/email" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"string","rawContent":"string"}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Body

application/json

Email webhook payload forwarded from Cloudflare Email Worker

to
string
required

Recipient of email

rawContent
string
required

Raw RFC822 email content as text

Response

200 - application/json

Successful response

Acknowledgement of email webhook receipt

success
boolean
required