API Overview
Integrate SendPromptly from your backend with one events endpoint.
API Overview
SendPromptly is built around event ingestion. Your application sends one event and SendPromptly handles template resolution, delivery runs, retries, and tracking.
Base URL
1
| https://app.sendpromptly.com/api
|
Core endpoint
Required headers:
Authorization: Bearer sp_{env}_{token}Idempotency-Key: <unique-key>
What happens after ingestion
- The event is validated and accepted.
- Matching templates are found for email and webhook channels.
- Delivery runs are created immediately or scheduled.
- Attempts are tracked with status, latency, and errors.
Full reference and examples
Quick request example
1
2
3
4
5
6
7
8
9
| curl -X POST https://app.sendpromptly.com/api/v1/events \
-H "Authorization: Bearer sp_prod_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Idempotency-Key: order-100023-20260207" \
-H "Content-Type: application/json" \
-d '{
"event_key": "order.created",
"recipient": {"email": "[email protected]", "name": "A. Customer"},
"payload": {"order_id": "O-100023", "total": 125.50, "currency": "CAD"}
}'
|