Skip to main content
POST
/
api
/
trigger
/
email
cURL
curl --request POST \
  --url https://app.cotool.ai/api/trigger/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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