Idempotency
Safely retry create requests.
Send an Idempotency-Key header (any unique string) on a create. Genaya stores the first response for 24 hours and replays it on a retry with the same key, so a network hiccup never creates a duplicate.
Bash
curl -X POST https://api.genaya.com/v1/appointments \
-H "Authorization: Bearer gny_live_xxx" \
-H "Idempotency-Key: a1b2c3d4" \
-H "Content-Type: application/json" \
-d '{ "firstName": "Sam", "phone": "+15555550123" }'Reusing a key with a different request body returns 409 idempotency_error.