v2
List execution attemps
GET
/
executions
/
{execution-id}
/
attempts
Authorization
Path
Body
curl --request GET \
--url https://api.defer.run/public/v2/executions/{execution-id}/attempts \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"page": {
"first": 3
},
"filters": {
"states": [
"started",
"succeed",
"failed"
]
}
}'
{
"data": [
{
"id": "AAYR4UFjxiD4cbHIJXSRZbzPVKtxTA",
"state": "started",
"created_at": "2023-11-14T16:16:51.98835+01:00",
"updated_at": "2023-11-14T16:16:55.612705+01:00"
},
{
"id": "AAYR4UFjK-qtSamewR2TMUyhQ1a_oQ",
"state": "succeed",
"created_at": "2023-11-14T16:16:51.987716+01:00",
"updated_at": "2023-11-14T16:16:58.669179+01:00"
},
{
"id": "AAYR4UFhv3cBjWlkZQlIwSlggOhjVQ",
"state": "failed",
"created_at": "2023-11-14T16:16:49.334976+01:00",
"updated_at": "2023-11-14T16:16:49.510079+01:00"
}
],
"page_info": {
"has_next_page": false,
"has_prev_page": true,
"start_cursor": "EeFBY8Yg-HGxyCV0kWW8z1SrcUz8zbvryIeFBg",
"end_cursor": "EeFBYb93AY1pZGUJSMEpYIDoY1WA2_foyIeFBg"
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
execution-id
string
requiredThe execution ID
Body
application/json
page
object
filters
object
Response
200 - application/json
data
object[]
page_info
object
Was this page helpful?
curl --request GET \
--url https://api.defer.run/public/v2/executions/{execution-id}/attempts \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"page": {
"first": 3
},
"filters": {
"states": [
"started",
"succeed",
"failed"
]
}
}'
{
"data": [
{
"id": "AAYR4UFjxiD4cbHIJXSRZbzPVKtxTA",
"state": "started",
"created_at": "2023-11-14T16:16:51.98835+01:00",
"updated_at": "2023-11-14T16:16:55.612705+01:00"
},
{
"id": "AAYR4UFjK-qtSamewR2TMUyhQ1a_oQ",
"state": "succeed",
"created_at": "2023-11-14T16:16:51.987716+01:00",
"updated_at": "2023-11-14T16:16:58.669179+01:00"
},
{
"id": "AAYR4UFhv3cBjWlkZQlIwSlggOhjVQ",
"state": "failed",
"created_at": "2023-11-14T16:16:49.334976+01:00",
"updated_at": "2023-11-14T16:16:49.510079+01:00"
}
],
"page_info": {
"has_next_page": false,
"has_prev_page": true,
"start_cursor": "EeFBY8Yg-HGxyCV0kWW8z1SrcUz8zbvryIeFBg",
"end_cursor": "EeFBYb93AY1pZGUJSMEpYIDoY1WA2_foyIeFBg"
}
}