Skip to main content

cURL

cURL is the fastest way to verify authentication, request shape, DNS setup, and error handling before you wire a full application client.

curl https://transmission.mailtarget.co/v1/layang/transmissions \
-X POST \
-H "Authorization: Bearer $MAILTARGET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject": "Hello from Mailtarget",
"from": { "email": "you@your-verified-domain.com", "name": "Your Name" },
"to": [{ "email": "recipient@example.com" }],
"bodyText": "If you can read this, the integration works."
}'

Expected success response:

{ "transmissionId": "abc123" }

For the full send body, read Transmission API.