Skip to content

Idempotent requests

Idempotency lets you safely retry a request without accidentally triggering the same operation twice. On certain API endpoints API, pass an optional metaId (eg. my_product_123). If a connection error happens mid-request, you can repeat it without worrying about a duplicate send.

Terminal window
curl "https://live.waypointapi.com/v1/email_messages" \
-H "Content-Type: application/json" \
-u "API_KEY_USERNAME:API_KEY_PASSWORD" \
-d '{
"templateId": "wptemplate_ABc123XYZ",
"metaId": "my_product_123",
"to": "jordan@usewaypoint.com",
"variables": {
"user": {
"displayName": "Jordan"
},
"product": {
"title": "Beechers Mac & Cheese",
"id": "02934203942"
}
}
}'