GET
/
executions
curl --request GET \
  --url https://api.defer.run/public/v2/executions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "page": {
    "first": 3
  },
  "filters": {
    "states": [
      "started",
      "succeed",
      "failed"
    ],
    "metadata": [
      {
        "key": "user-id",
        "values": [
          "89a7c4d0-edf1-418b-a7d2-aa54d3832cc0",
          "dc01b186-dd81-4f52-9795-c7281f9637a4"
        ]
      }
    ]
  }
}'
{
  "data": [
    {
      "id": "AAYR4UFjxiD4cbHIJXSRZbzPVKtxTA",
      "state": "started",
      "scheduled_at": "2023-11-14T16:16:51.98835+01:00",
      "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",
      "scheduled_at": "2023-11-14T16:16:51.98835+01:00",
      "created_at": "2023-11-14T16:16:51.987716+01:00",
      "updated_at": "2023-11-14T16:16:58.669179+01:00"
    },
    {
      "id": "AAYR4UFhv3cBjWlkZQlIwSlggOhjVQ",
      "state": "failed",
      "scheduled_at": "2023-11-14T16:16:51.98835+01:00",
      "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
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
page
object
filters
object

Response

200 - application/json
data
object[]
page_info
object