Idempotency & Retries
Safely retry network interruptions without risking duplicate charges.
Idempotency-Key Rules
- Send an optional Idempotency-Key header (up to 128 characters) scoped to your organization and endpoint.
- Keys remain active for a 24-hour retention window.
- Reusing the same key with different canonical query parameters returns HTTP 409 IDEMPOTENCY_CONFLICT.
- Concurrent in-flight requests with the same key return HTTP 409 IDEMPOTENCY_IN_PROGRESS or wait briefly for finalization.
Replay Payload Retention
To avoid storing personal social data unnecessarily, response data is cached for replay only when permitted by endpoint policy; otherwise replays return meta.replayed: true and meta.billing.status: replayed.
{
"success": true,
"meta": {
"request_id": "req_02syntheticreplay",
"platform": "instagram",
"cached": false,
"replayed": true,
"original_request_id": "2c91b99a-4d7c-4f21-b8b0-1234567890ab",
"billing": {
"request_id": "2c91b99a-4d7c-4f21-b8b0-1234567890ab",
"amount": "0.0020",
"currency": "USD",
"status": "replayed"
}
}
}