Skip to main content
POST
Moves FAILED events back to PENDING for another processing attempt. Name the events in event_ids, or select a program’s open failures with one cause. Each retry runs every rule again against the participant’s current state and sends the usual event.completed or event.failed webhook. Fix the cause before retrying. A retry is accepted for a SUSPENDED or CLOSED participant, but fails again with participant_inactive if a balance, counter, or tier action still runs for them.
See Event lifecycle to retry named events, or Failures by cause for selection, pagination, and skipped-event recovery.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Body

application/json

The events to retry

Selects the events to retry: the events event_ids names, or the open failures of one rewards program with one cause, such as a burst. Send event_ids or program_id, error_code and before, not both.

before
string<date-time>

Retry only events whose latest failure is at or before this time, RFC 3339, compared to the second. Send the time you loaded the failures, so failures that arrive later stay open. Required without event_ids.

Example:

"2027-01-15T10:30:00Z"

cursor
string

The next_cursor from the previous response, to continue after the events it covered. Send it with the same program_id, error_code, participant_id and before.

Required string length: 1 - 1024
Example:

"eyJ2IjoiMjAyNC0wMS0xNVQxMDozMDowMloiLCJpZCI6IjlkNWY3ZDRhIn0="

error_code
string

The cause: retry only events that first failed with this error_code. An event keeps the code it first failed with after a retry. Required without event_ids.

Required string length: 1 - 100
Example:

"participant_inactive"

event_ids
string[]

The events to retry, 1 to 250 ids, in any program. Send it without program_id, error_code, participant_id, before and cursor. A named event a retry of it alone would refuse, such as one that is not FAILED (event_not_retryable) or does not exist (event_not_found), is listed in skipped.

Required array length: 1 - 250 elements
Example:
participant_id
string<uuid>

Retry only this participant's events: those it is the actor or the recipient of. Omit it to retry every participant's failures.

Example:

"f7a8b9c0-1d2e-4f3a-b4c5-d6e7f8a9b006"

program_id
string<uuid>

The rewards program whose failures to retry. Required without event_ids.

Example:

"8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01"

Response

How many events were queued

How many events a retry queued, and which it could not retry.

has_more
boolean

True when a selector request stopped at 250 events and more matching failures remain. Send the same request with next_cursor as cursor to retry the rest. Always false with event_ids.

Example:

false

next_cursor
string | null

Where the next request continues. Null when has_more is false.

Example:

"eyJ2IjoiMjAyNC0wMS0xNVQxMDozMDowMloiLCJpZCI6IjlkNWY3ZDRhIn0="

queued_count
integer

How many events this request moved back to PENDING. Scrip processes each again as a retry of it alone would.

Example:

152

skipped
object[]

The named or selected events that could not be retried. They are left as they were.