Skip to content

replay_window_invalid

The window you sent can’t be replayed or read: from is not before to, or the window is longer than 90 days.

HTTP 400 · invalid_request_error · not retryable

The window you sent can’t be replayed or read: from is not before to, or the window is longer than 90 days. The replay route, GET /v1/insights/stats (with from and to) and GET /v1/insights/shadow check the same rule. param names the end at fault: to when both ends were sent and from isn’t before it, otherwise from.

Send from before to, at most 90 days apart, both in RFC 3339 like 2026-09-26T00:00:00Z. Leave both out to use the last 7 days.

HTTP 400 · replay_window_invalid
{
"error": {
"type": "invalid_request_error",
"code": "replay_window_invalid",
"message": "The window must start before it ends, and it can be at most 90 days long. Send from before to.",
"param": "from",
"request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d",
"doc_url": "https://docs.deedglass.com/errors/replay_window_invalid"
}
}

The message is for a person and can get more exact over time: branch on type and code, never on the message.

SDK Raised as
TypeScript (@deedglass/sdk) InvalidRequestError with code === "replay_window_invalid"
Python (deedglass) deedglass.InvalidRequestError with .code == "replay_window_invalid"