Look up several deliveries Beta
This endpoint is in beta. Its request and response may change.
Finds up to 25 trigger events by message ID or event ID, in any mix, and returns a result for each, in the order sent. An ID that matches nothing comes back as BATCH_LOOKUP_OUTCOME_NOT_FOUND. Attempts here have no response body; look up one delivery to read it. The call only reads, so retrying is safe. Up to 60 requests a minute per environment.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Body
idsarray of stringrequiredmsg_…, sent to the endpoint as the webhook-id header) or event IDs (the payload's dedupe_key) of the trigger events to find, in any mix: at least 1 and at most 25, with no repeats. Each is 1 to 256 characters: letters, digits, ., _ and -. An attempt ID (atmpt_…) refuses the whole request.scalekit_client.actions.triggers.batch_lookup_deliveries
Look up 1 to 25 delivered messages by message ID or event ID. Each ID gets its own outcome in results (FOUND, NOT_FOUND, RATE_LIMITED, FAILED, NOT_ATTEMPTED), and those never raise. Attempts in the results carry no response bodies.
scalekit_client.actions.triggers.batch_lookup_deliveries( delivery_ids: Sequence[str],) -> BatchLookupTriggerDeliveriesResponseParameters
delivery_idsSequence[str]requiredmsg_...) or event IDs, unique.Returns BatchLookupTriggerDeliveriesResponse: Per-ID results and found_count.
From scalekit-sdk-python 2.23.0.
Response 200
found_countintegerresultsarray of objectShow 4 child attributes
deliveryobjectresponse is empty and its response_truncated is false. truncated keeps its meaning: true when the event has more than the 50 attempts returned. Present only for BATCH_LOOKUP_OUTCOME_FOUND.Show 11 child attributes
attemptsarray of objectconnection_idstringconnection_key_idstringconnector. Empty when the connection no longer exists.connection_providerstringevent_idstringdedupe_key and correlation_id. Empty when the event was sent without one.message_timestampstringmsg_idstringwebhook-id header.subscription_idstringtrigger_modestring (enum)WEBHOOKPOLLtrigger_namestringtruncatedbooleanidstringoutcomestring (enum)BATCH_LOOKUP_OUTCOME_FOUNDBATCH_LOOKUP_OUTCOME_NOT_FOUNDBATCH_LOOKUP_OUTCOME_RATE_LIMITEDBATCH_LOOKUP_OUTCOME_FAILEDBATCH_LOOKUP_OUTCOME_NOT_ATTEMPTEDreasonstringErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request, nothing looked up - ids is empty, holds more than 25 IDs or repeats one; an ID is longer than 256 characters or contains characters other than letters, digits, ., _ and -; or an ID is an attempt ID (atmpt_), which Look up a delivery refuses too. A well-formed ID that names no trigger event 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. An ID that names no trigger event is not this case: it is a NOT_FOUND result with a 200429Too many requests - this environment has sent too many batch lookup requests in the last minute. Nothing was looked up; retry after a short wait. Reads refused for volume partway through a batch are not this case: they are reported per ID as RATE_LIMITED, with a 200500Internal error - the environment's trigger deliveries could not be reached, so nothing was looked up; retry the request