List the attempts for a delivery Beta
This endpoint is in beta. Its request and response may change.
Lists every attempt to deliver one event to one of your endpoints, oldest first: the first attempt, each automatic retry and each resend. Each attempt has its HTTP status code, your endpoint's response body (its first 4096 bytes) and how long it took. Returns at most the newest 50 attempts; truncated is true when there are more.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
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.list_delivery_attempts_by_message
List every attempt to deliver one message to one of your endpoints.
scalekit_client.actions.triggers.list_delivery_attempts_by_message( endpoint_id: str, msg_id: str,) -> ListTriggerDeliveryAttemptsByMessageResponseParameters
endpoint_idstrrequiredep_...), 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_idstrrequiredmsg_...).Returns ListTriggerDeliveryAttemptsByMessageResponse: Up to 50 attempts, oldest first, and truncated.
From scalekit-sdk-python 2.23.0.
Response 200
attemptsarray of objectShow 11 child attributes
endpoint_idstringendpoint_urlstringidstringmsg_idstringresponsestringresponse_duration_msintegerresponse_status_codeintegerresponse_truncatedbooleanresponse was cut to its first 4096 bytes. Set only by List the attempts for a delivery and Look up a delivery, which apply that cap.statusstring (enum)SUCCESSPENDINGFAILSENDINGCANCELEDtimestampstringtrigger_typestring (enum)TRIGGER_DELIVERY_ATTEMPT_TRIGGER_TYPE_SCHEDULEDTRIGGER_DELIVERY_ATTEMPT_TRIGGER_TYPE_MANUALtruncatedbooleanErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - endpoint_id is missing, is longer than 256 characters or contains characters other than letters, digits, ., _ and -; msg_id is not a message ID (msg_ followed by 1 to 64 letters or digits); or the endpoint or the message does not exist in this environment404Not found - Triggers isn't turned on for your environment429Too many requests - deliveries are being read too often. Retry shortly; the request is not retried on your behalf500Internal error - the attempts could not be read; retry the request