Within 24 hours, the same key gets the first answer back, with the header Idempotent-Replayed: true. Run this twice to see it:
curl https://api.reviewflowz.com/v3/reports/query \-H "Authorization: Bearer rfz_live_..." \-H "Content-Type: application/json" \-H "Idempotency-Key: safe-retries-demo-1" \-d '{"dimensions": ["platform"], "metrics": ["average_rating"]}'
const res = await fetch("https://api.reviewflowz.com/v3/reports/query", {method: "POST",headers: {"Authorization": "Bearer rfz_live_...","Content-Type": "application/json","Idempotency-Key": "safe-retries-demo-1",},body: JSON.stringify({"dimensions": ["platform"], "metrics": ["average_rating"]}),});console.log(await res.json());
import requestsres = requests.post("https://api.reviewflowz.com/v3/reports/query",headers={"Authorization": "Bearer rfz_live_...","Content-Type": "application/json","Idempotency-Key": "safe-retries-demo-1",},json={"dimensions": ["platform"], "metrics": ["average_rating"]},)print(res.json())
Edit the request
- from · Start date (default 30 days before to).
- to · End date (default today).
- compare_from · Comparison window start.
- compare_to · Comparison window end.
- sort_by
- sort_direction
- limit · Rows per page: 1 to 500 (default 50).
- cursor · The next_cursor from the previous page. Leave it out for the first...
A 5xx or a 429 isn't kept: the same key runs the call again.