Guides
Retries
What counts as a failure, how many times the simulator retries, how to read execution logs and how to resend.
When your endpoint does not acknowledge a delivery (a non-2xx response, a network error or a timeout), the simulator records the failure and, if the subscription allows it, tries again. Every delivery is kept in an execution log you can inspect and resend.
What counts as success
Any 2xx (200, 201, 202, 204...). Everything else is a failure: 4xx, 5xx, connection refused or timeout. In Mimicr the timeout is 10 seconds.
Answer 2xx first and process asynchronously afterwards. Long processing inside the request causes timeouts and needless retries.
Policy
| Property | In Mimicr |
|---|---|
| When | Only on subscriptions with allowRetry: true; otherwise one attempt |
| Attempts | 3 in total (the original and 2 retries) |
| Interval | Fixed, 10 seconds |
| Identifier | X-Message-Id is the same on every attempt |
| End | Once the attempts run out, the delivery stays FAILED and is not retried automatically |
Trace documents "a small number, typically 2 to 5" with a fixed delay; the numbers above are Mimicr's choice.
Idempotency on your side
Treat the handler as idempotent. The same X-Message-Id may arrive more than once when:
- your endpoint processed the event but timed out;
- a previous attempt answered
5xxand is being retried; - you resent the delivery by hand.
Store X-Message-Id somewhere durable and skip duplicates before any side effect.
Inspect the execution logs
curl --url https://trace.mimicr.dev/v1/subscriptions/<subscription-id>/executionLogs \ --header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "4d36ad5b-5b9c-4521-8810-25ebecd5ae89",
"companyId": "dca5d593-82d4-4833-9d8a-54aa6829ac1a",
"subscriptionId": "849df36e-ceb5-423e-9eb3-6cda4370d52a",
"messageId": "4ed2c592-b253-4401-870f-5a10c9d407c0",
"eventType": "OPERATION_COMPLETED",
"url": "https://api.example.com/trace-webhooks",
"payload": "{\"id\":\"e2606269-48cb-44be-8e6c-dc1559d3f4d4\", ...}",
"httpStatus": 200,
"error": null,
"status": "SUCCESS",
"retryAttempts": 1,
"createdAt": "2026-11-05T20:12:32Z",
"updatedAt": "2026-11-05T20:12:43Z"
}
],
"meta": { "previousCursor": null, "nextCursor": null, "total": 1 }
}statusisSUCCESSorFAILED.retryAttemptscounts the retries made (0 on the first attempt).httpStatusis0when there was no response, anderrorcarries the reason.payloadis the body that was sent, as a string.
In Mimicr each message is a single log that accumulates its attempts. References: List execution logs, Get an execution log.
Resend
curl --request POST \ --url https://trace.mimicr.dev/v1/subscriptions/<subscription-id>/executionLogs/<log-id>/resend \ --header 'Authorization: Bearer <token>'
The response is 204. The simulator sends the same payload, headers and signature again (same X-Message-Id), recorded as a new execution log. Use it to test a fixed handler without repeating the original operation. Reference: Resend a delivery.
Test failures
- Answer
503from your endpoint and watch the 3 attempts in List execution logs. - Turn on webhook chaos (
webhookFailRate) for an area: the first attempt fails without reaching your server and, withallowRetry, the second one arrives. webhookDuplicateRatesends a copy of the event with a differentX-Message-Id, like a repeated event; handle it by resource id and state.- Resend through the control API:
npx mimicr action trace webhook.resend logId=<log-id>creates a new log; withretry=true, it retries the same log.
See Sandbox control.