Sign in

Send email

documented

Send a transactional email to one or more recipients with optional substitutions, attachments, and tracking.

POST https://goapi.unisender.ru/ru/transactional/api/v1/email/send.jsonEmailno 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://go1.unisender.ru/ru/transactional/api/v1/email/send.json" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-API-KEY: {{UNISENDER_API_KEY}}" \
  -d '{"message": {"recipients": [{"email": "{{$recipient_email}}", "substitutions": {"to_name": "{{$to_name}}"}}], "template_id": null, "tags": [], "skip_unsubscribe": 0, "global_language": "en", "template_engine": "simple", "body": {"html": "<b>Hello, {{$to_name}}</b>", "plaintext": "Hello, {{$to_name}}"}, "subject": "{{$subject}}", "from_email": "{{$from_email}}", "from_name": "{{$from_name}}", "reply_to": "{{$reply_to}}", "reply_to_name": "{{$reply_to_name}}", "track_links": 0, "track_read": 0}}'" ,
  "variables": [
    {"name": "recipient_email", "label": "Recipient email address", "placeholder": "user@example.com", "type": "text", "exampleValue": "user@example.com"},
    {"name": "to_name", "label": "Recipient name", "placeholder": "John Doe", "type": "text", "exampleValue": "John Doe"},
    {"name": "subject", "label": "Email subject", "placeholder": "Subject", "type": "text", "exampleValue": "Unisender Go test email"},
    {"name": "from_email", "label": "Sender email", "placeholder": "sender@example.com", "type": "text", "exampleValue": "sender@example.com"},
    {"name": "from_name", "label": "Sender name", "placeholder": "Sender Name", "type": "text", "exampleValue": "Sender Name"},
    {"name": "reply_to", "label": "Reply-To email", "placeholder": "replyto@example.com", "type": "text", "exampleValue": "replyto@example.com"},
    {"name": "reply_to_name", "label": "Reply-To name", "placeholder": "Reply Name", "type": "text", "exampleValue": "Reply Name"},
    {"name": "campaign_id", "label": "Campaign ID", "placeholder": "camp-123", "type": "text", "exampleValue": "camp-123"},
    {"name": "UNISENDER_API_KEY", "label": "UniSender API Key", "placeholder": "Enter your UniSender API key", "type": "password", "exampleValue": "<your_api_key>"}
  ]}