Single & transactional sends
Send notifications, receipts, and one-off emails from your agent at the same unit price. html, text, or design(block JSON) — pass one of them.
curl -X POST https://send.ad/api/v1/send -H "Authorization: Bearer $SEND_API_KEY" -H "content-type: application/json" \
-d '{"to":"kim@example.com","subject":"We got your order","html":"<p>Thanks, {{first_name|there}}.</p>","merge":{"first_name":"Alex"}}'
# → { delivery_id, token, cost_krw }
curl https://send.ad/api/v1/deliveries/<token> -H "Authorization: Bearer $SEND_API_KEY"await fetch('https://send.ad/api/v1/send', { method: 'POST', headers: { authorization: `Bearer ${process.env.SEND_API_KEY}`, 'content-type': 'application/json' },
body: JSON.stringify({ to: 'kim@example.com', subject: 'We got your order', html: '<p>Thanks.</p>' }) })Single sends don't get the (Ad) prefix or the compliance footer — they're for transactional and notification email. If the content is promotional, send it as a campaign.
Transactional API — straight from your code (Mailchimp Transactional-compatible)
When calling from a server, CI or an AI agent, POST /api/v1/txn/send is more convenient. It follows Mailchimp Transactional (Mandrill)'s messages/send accepts the same message shape, and *|TAG|* merge tags {{tag}} are converted automatically. Same per-send price and the same safety gates apply.
curl -X POST https://send.ad/api/v1/txn/send -H "Authorization: Bearer $SEND_API_KEY" -H "content-type: application/json" \
-d '{"message":{"to":[{"email":"kim@example.com","merge":{"item":"Wireless earbuds"}}],"subject":"Your order has been received","html":"<p>Hi *|first_name|*, your order for *|item|* has been received.</p>"}}'
# → { results:[{email,status:"sent",id,delivery_id}…], cost_krw, ok }// search deliveries (Mandrill messages/search equivalent)
await fetch('https://send.ad/api/v1/txn/messages?status=sent&q=kim@example.com', { headers: { authorization: `Bearer ${process.env.SEND_API_KEY}` } })Event webhooks — opens, clicks, bounces pushed to your server
Delivery events (sent, delivered, open, click, bounce, complaint, unsubscribe, dropped, failed, deferred) are POSTed as JSON to the URL you register. Header X-Send-Signature: sha256=HMAC(본문, 비밀키) signs the request — verify with the secret. The secret is shown only once at registration.
# register (the secret is shown only this once)
curl -X POST https://send.ad/api/v1/txn/webhooks -H "Authorization: Bearer $SEND_API_KEY" -H "content-type: application/json" \
-d '{"url":"https://myapp.example.com/hooks/send","events":["open","click","bounce"]}'The CLI does the same things: sendad txn send · txn messages · txn webhooks · txn webhook-add <url> · txn webhook-remove <id>