Send a transactional email
documentedSend a transactional email via API.
POST /v1/transactional/sendTransactionalno implementation yet0 runsNo 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.ap3api.com/v1/transactional/send" \
-X POST \
-H "X-Api-Key: {{AUTOPILOTHQ_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"asset": {"from_email": "{{$from_email}}","from_name": "{{$from_name}}","reply_to": "{{$reply_to}}","cc": ["{{$cc_email}}"],"subject": "{{$subject}}","email_name": "{{$email_name}}","no_click_tracks": {{$no_click_tracks}},"no_opens_tracks": {{$no_opens_tracks}},"html_body": "{{$html_body}}","liquid_syntax_enabled": {{$liquid_syntax_enabled}},"campaign_id": "{{$campaign_id}}","asset_id": "{{$asset_id}}"},"emails": [{"fields": {"bol::sp": true,"str::email": "{{$recipient_email}}","str::first": "{{$recipient_first_name}}","str::last": "{{$recipient_last_name}}","str::soi-ctx": "{{$soi_ctx}}"},"location": null}],"merge_by": ["str::email"],"merge_strategy": 2,"find_strategy": 0,"skip_non_existing": false}'"}