Idempotency-Key header on a request that changes data (POST, PUT, PATCH or DELETE).
What Wave does with the key
Two requests are the same when they use the same method, the same endpoint and the same JSON body. The order of the fields in the body does not matter.
Which replies Wave keeps
- Wave keeps a successful reply (
2xx) for 24 hours. - Wave also keeps one failure:
502 CALL_FAILEDfromPOST /v1/callsorPOST /v1/callbackwhen the telephony engine did not answer clearly. The call may have started, so a retry with the same key gets the same502and does not place a call. Check your webhooks or the person before you try again, and send a new key to place a new call. - Wave does not keep any other error. After a
4xx(for example a validation error) or another5xx, you can correct the request and retry with the same key. - Wave does not keep a reply that contains a secret (for example a new webhook signing secret or web-calling credentials), or a reply larger than 64 KB. The key still stops a duplicate request while the first one runs (
409) and a different request (422). But after the first reply, a retry with the same key runs again. Before you retry such a request, check if the first one was done.

