Ir al contenido

API REST

Mantén la clave en el servidor y envíala en Authorization.

Terminal window
curl "$ALL2CF_SEND_URL/emails" \
-H "Authorization: Bearer $ALL2CF_SEND_KEY" \
-H "Content-Type: application/json" \
--data '{"from":"hello@example.com","to":["alex@example.net"],"subject":"Hola","html":"<p>Hola desde CFsend</p>"}'

POST /emails acepta from, to, subject y html o text. Guarda el ID devuelto y sigue el resultado en Logs o mediante Webhook. Reintenta solo errores temporales identificados como tales.