Sign in

Send mail

documented

Send a transactional email using the REST API.

POST /v3/mail/sendMailno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.sendgrid.com/v3/mail/send" \
  -X POST \
  -H "Authorization: Bearer {{SENDGRID_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"personalizations":[{"to":[{"email":"{{$to_email}}"}],"subject":"{{$subject}}"}],"from":{"email":"{{$from_email}}"},"content":[{"type":"text/plain","value":"{{$body_text}}"}]}'
Send mail · SendGrid · OpenIntegrations