Resend deliveries Beta
This endpoint is in beta. Its request and response may change.
Queues one more attempt to deliver each event to the endpoint you name, for up to 50 events. BATCH_RESEND_OUTCOME_QUEUED means the attempt was queued, not that it succeeded; check it with List the attempts for a delivery. Each call queues another attempt, so after a partial failure resend only the events that didn't come back QUEUED. Up to 60 requests a minute per environment.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Body
targetsarray of objectrequiredShow 2 child attributes
endpoint_idstringrequiredep_...), the URL on your server that you added under Developers > Trigger Delivery. Look up a delivery returns it as endpoint_id on each attempt.msg_idstringrequiredmsg_ followed by 1 to 64 letters or digits.scalekit_client.actions.triggers.batch_resend_deliveries
Send 1 to 50 messages to endpoints again. Each target makes a real delivery attempt and gets its own outcome in results (QUEUED, NOT_FOUND, RATE_LIMITED, FAILED, NOT_ATTEMPTED), which never raise. Not retried on UNAVAILABLE: a retry could deliver the messages twice.
scalekit_client.actions.triggers.batch_resend_deliveries( targets: Sequence[TriggerDeliveryResendTarget | TriggerDeliveryResendTargetParam],) -> BatchResendTriggerDeliveriesResponseParameters
targetsSequence[TriggerDeliveryResendTarget | TriggerDeliveryResendTargetParam]requiredTriggerDeliveryResendTarget models or {"msg_id": "msg_...", "endpoint_id": "ep_..."} dicts.Returns BatchResendTriggerDeliveriesResponse: Per-target results and queued_count.
From scalekit-sdk-python 2.23.0.
Response 200
queued_countintegerresultsarray of objectShow 4 child attributes
endpoint_idstringmsg_idstringoutcomestring (enum)BATCH_RESEND_OUTCOME_QUEUEDBATCH_RESEND_OUTCOME_NOT_FOUNDBATCH_RESEND_OUTCOME_RATE_LIMITEDBATCH_RESEND_OUTCOME_FAILEDBATCH_RESEND_OUTCOME_NOT_ATTEMPTEDreasonstringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request, nothing queued - targets is empty or holds more than 50; a msg_id is not a message ID (msg_ followed by 1 to 64 letters or digits) or an endpoint_id is not an endpoint ID (ep_ followed by 1 to 64 letters or digits); or the same msg_id and endpoint_id pair appears twice, since sending it twice would queue two attempts. A well-formed message or endpoint ID that does not exist in this environment is not this case: it comes back as a NOT_FOUND result with a 200404Not found - Triggers isn't turned on for your environment. Nothing was queued. A message or endpoint that does not exist is not this case: it is a NOT_FOUND result with a 200429Too many requests - this environment has sent too many batch resend requests in the last minute. Nothing was queued; retry after a short wait. A rate limit reached partway through a batch is not this case: it is reported per target as RATE_LIMITED, with a 200500Internal error - the environment's trigger deliveries could not be reached, so nothing was queued; retry the request