---
agentTools:
  projectIndex: https://docs.qdelivery.app/llms.txt
---

# Index

[block:html]
{
  "html": "<table><tbody><tr><th>Filterable Column</th><th>Description</th></tr><tr><td>status_category_slug</td><td>Available types are listed below.</td></tr><tr><td>courier_id</td><td> </td></tr><tr><td>date</td><td>2022-04-16T17:00:00.000000Z,2022-04-16T17:00:00.000000Z It accepts 2 date values separated by commas in format. Filters the ends_at field by these values</td></tr></tbody></table>"
}
[/block]

[block:html]
{
  "html": "<table><tbody><tr><th>status_category_slug types</th></tr><tr><td>created</td></tr><tr><td>pool</td></tr><tr><td>assigned</td></tr><tr><td>in_progress</td></tr><tr><td>on_delivery</td></tr><tr><td>completed</td></tr><tr><td>cancelled</td></tr><tr><td>failed</td></tr></tbody></table>"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Integration",
    "version": "1.6.1"
  },
  "servers": [
    {
      "url": "https://api.dev.qdelivery.app/api/integration"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/tasks": {
      "get": {
        "summary": "Index",
        "description": "",
        "operationId": "list-tasks",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": [\n    {\n      \"id\": 81,\n      \"integration_id\": null,\n      \"tracking_code\": \"QD1-22159FXPPMG\",\n      \"type_slug\": \"assignable\",\n      \"obligation_slug\": \"mandatory\",\n      \"status_id\": 3,\n      \"status_category_slug\": \"assigned\",\n      \"plan_id\": null,\n      \"owner_id\": 2,\n      \"courier_id\": 608,\n      \"team_id\": null,\n      \"hub_id\": 1,\n      \"origin_hub_id\": 1,\n      \"destination_hub_id\": 2,\n      \"origin_address\": \"Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14/1-A, 34742 Kadıköy/İstanbul\",\n      \"origin_address_building\": null,\n      \"origin_address_floor\": null,\n      \"origin_address_apartment\": null,\n      \"origin_phone\": null,\n      \"origin_phone_country\": null,\n      \"origin_name\": \"Anadolu Depo\",\n      \"origin_lat\": 40.971301,\n      \"origin_lng\": 29.094388,\n      \"destination_address\": \"Vişnezade, Hüsrev Gerede Cd. No:15, 34357 Beşiktaş/İstanbul\",\n      \"destination_address_building\": null,\n      \"destination_address_floor\": null,\n      \"destination_address_apartment\": null,\n      \"destination_phone\": null,\n      \"destination_phone_country\": null,\n      \"destination_name\": \"Avrupa Mağazası\",\n      \"destination_lat\": 41.046089,\n      \"destination_lng\": 28.99963,\n      \"is_origin_resolved\": false,\n      \"is_destination_resolved\": false,\n      \"slot\": null,\n      \"starts_at\": \"2022-06-09T14:35:01.000000Z\",\n      \"ends_at\": \"2022-06-09T15:35:00.000000Z\",\n      \"quantity\": 1,\n      \"service_time\": 0,\n      \"response_time\": 0,\n      \"requires_delivery_code\": false,\n      \"requires_delivery_code_mandatory\": false,\n      \"requires_pod_photo\": false,\n      \"requires_pod_photo_mandatory\": false,\n      \"requirements_delivery_code\": null,\n      \"requirements_pod_photo\": null,\n      \"notes\": null,\n      \"recipient_notes\": null,\n      \"channel\": \"ui\",\n      \"provider_id\": null,\n      \"status_at\": \"2022-06-09T15:17:34.000000Z\",\n      \"seen_at\": null,\n      \"claimed_at\": null,\n      \"created_at\": \"2022-06-09T15:17:34.000000Z\",\n      \"updated_at\": \"2022-06-09T15:17:34.000000Z\",\n      \"route_order\": 0,\n      \"priority\": 0,\n      \"contents\": [],\n      \"payment_type\": null,\n      \"foreign_carrier\": null,\n      \"handled_by_foreign_carrier\": false,\n      \"rating\": 0,\n      \"comment\": null,\n      \"distance\": 20931,\n      \"duration\": 2293,\n      \"was_finalized_duly\": true,\n      \"was_delayed\": false,\n      \"started_at\": null,\n      \"ended_at\": null,\n      \"starts_at_on_route\": null,\n      \"ends_at_on_route\": null,\n      \"tags\": [\n        \"İstanbul\", \"Beşiktaş\"\n      ],\n      \"status\": {\n        \"id\": 3,\n        \"name\": \"Atandı\"\n      },\n      \"courier\": {\n        \"id\": 608,\n        \"code\": \"C6\",\n        \"name\": \"Ahmet Demir\"\n      },\n      \"status_logs\": [\n        {\n          \"id\": 102,\n          \"task_id\": 81,\n          \"role_slug\": \"customer\",\n          \"user_id\": 2,\n          \"channel\": \"qconnect\",\n          \"courier_id\": 608,\n          \"status_id\": 3,\n          \"status_category_slug\": \"assigned\",\n          \"notes\": null,\n          \"lat\": null,\n          \"lng\": null,\n          \"geohash\": null,\n          \"created_at\": \"2022-06-09T15:17:34.000000Z\",\n          \"updated_at\": \"2022-06-09T15:17:34.000000Z\",\n          \"courier\": {\n            \"id\": 608,\n            \"name\": \"Ahmet Demir\",\n            \"avatar_url\": \"https://qdelivery-api.test/images/avatar.png\"\n          },\n          \"status\": {\n            \"id\": 3,\n            \"status_category_slug\": \"assigned\",\n            \"name\": \"Atandı\"\n          }\n        }\n      ],\n      \"hub\": {\n        \"id\": 1,\n        \"integration_id\": \"A2\",\n        \"name\": \"Anadolu Depo\"\n      },\n      \"team\": {\n        \"id\": 1,\n        \"name\" : \"Takım\"\n      }\n    }\n  ],\n  \"links\": {\n    \"first\": \"https://qdelivery-api.test/api/integration/tasks?page=1\",\n    \"last\": null,\n    \"prev\": null,\n    \"next\": \"https://qdelivery-api.test/api/integration/tasks?page=2\"\n  },\n  \"meta\": {\n    \"current_page\": 1,\n    \"from\": 1,\n    \"path\": \"https://qdelivery-api.test/api/integration/tasks\",\n    \"per_page\": 1,\n    \"to\": 1\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 81,
                            "default": 0
                          },
                          "integration_id": {},
                          "tracking_code": {
                            "type": "string",
                            "example": "QD1-22159FXPPMG"
                          },
                          "type_slug": {
                            "type": "string",
                            "example": "assignable"
                          },
                          "obligation_slug": {
                            "type": "string",
                            "example": "mandatory"
                          },
                          "status_id": {
                            "type": "integer",
                            "example": 3,
                            "default": 0
                          },
                          "status_category_slug": {
                            "type": "string",
                            "example": "assigned"
                          },
                          "plan_id": {},
                          "owner_id": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "courier_id": {
                            "type": "integer",
                            "example": 608,
                            "default": 0
                          },
                          "team_id": {},
                          "hub_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "origin_hub_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "destination_hub_id": {
                            "type": "integer",
                            "example": 2,
                            "default": 0
                          },
                          "origin_address": {
                            "type": "string",
                            "example": "Kozyatağı Mah, Şakacı Sk. Selimoğlu Residence No:14/1-A, 34742 Kadıköy/İstanbul"
                          },
                          "origin_address_building": {},
                          "origin_address_floor": {},
                          "origin_address_apartment": {},
                          "origin_phone": {},
                          "origin_phone_country": {},
                          "origin_name": {
                            "type": "string",
                            "example": "Anadolu Depo"
                          },
                          "origin_lat": {
                            "type": "number",
                            "example": 40.971301,
                            "default": 0
                          },
                          "origin_lng": {
                            "type": "number",
                            "example": 29.094388,
                            "default": 0
                          },
                          "destination_address": {
                            "type": "string",
                            "example": "Vişnezade, Hüsrev Gerede Cd. No:15, 34357 Beşiktaş/İstanbul"
                          },
                          "destination_address_building": {},
                          "destination_address_floor": {},
                          "destination_address_apartment": {},
                          "destination_phone": {},
                          "destination_phone_country": {},
                          "destination_name": {
                            "type": "string",
                            "example": "Avrupa Mağazası"
                          },
                          "destination_lat": {
                            "type": "number",
                            "example": 41.046089,
                            "default": 0
                          },
                          "destination_lng": {
                            "type": "number",
                            "example": 28.99963,
                            "default": 0
                          },
                          "is_origin_resolved": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "is_destination_resolved": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "slot": {},
                          "starts_at": {
                            "type": "string",
                            "example": "2022-06-09T14:35:01.000000Z"
                          },
                          "ends_at": {
                            "type": "string",
                            "example": "2022-06-09T15:35:00.000000Z"
                          },
                          "quantity": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "service_time": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "response_time": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "requires_delivery_code": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "requires_delivery_code_mandatory": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "requires_pod_photo": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "requires_pod_photo_mandatory": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "requirements_delivery_code": {},
                          "requirements_pod_photo": {},
                          "notes": {},
                          "recipient_notes": {},
                          "channel": {
                            "type": "string",
                            "example": "ui"
                          },
                          "provider_id": {},
                          "status_at": {
                            "type": "string",
                            "example": "2022-06-09T15:17:34.000000Z"
                          },
                          "seen_at": {},
                          "claimed_at": {},
                          "created_at": {
                            "type": "string",
                            "example": "2022-06-09T15:17:34.000000Z"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2022-06-09T15:17:34.000000Z"
                          },
                          "route_order": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "priority": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "contents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "payment_type": {},
                          "foreign_carrier": {},
                          "handled_by_foreign_carrier": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "rating": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "comment": {},
                          "distance": {
                            "type": "integer",
                            "example": 20931,
                            "default": 0
                          },
                          "duration": {
                            "type": "integer",
                            "example": 2293,
                            "default": 0
                          },
                          "was_finalized_duly": {
                            "type": "boolean",
                            "example": true,
                            "default": true
                          },
                          "was_delayed": {
                            "type": "boolean",
                            "example": false,
                            "default": true
                          },
                          "started_at": {},
                          "ended_at": {},
                          "starts_at_on_route": {},
                          "ends_at_on_route": {},
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "example": "İstanbul"
                            }
                          },
                          "status": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 3,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Atandı"
                              }
                            }
                          },
                          "courier": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 608,
                                "default": 0
                              },
                              "code": {
                                "type": "string",
                                "example": "C6"
                              },
                              "name": {
                                "type": "string",
                                "example": "Ahmet Demir"
                              }
                            }
                          },
                          "status_logs": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "integer",
                                  "example": 102,
                                  "default": 0
                                },
                                "task_id": {
                                  "type": "integer",
                                  "example": 81,
                                  "default": 0
                                },
                                "role_slug": {
                                  "type": "string",
                                  "example": "customer"
                                },
                                "user_id": {
                                  "type": "integer",
                                  "example": 2,
                                  "default": 0
                                },
                                "channel": {
                                  "type": "string",
                                  "example": "qconnect"
                                },
                                "courier_id": {
                                  "type": "integer",
                                  "example": 608,
                                  "default": 0
                                },
                                "status_id": {
                                  "type": "integer",
                                  "example": 3,
                                  "default": 0
                                },
                                "status_category_slug": {
                                  "type": "string",
                                  "example": "assigned"
                                },
                                "notes": {},
                                "lat": {},
                                "lng": {},
                                "geohash": {},
                                "created_at": {
                                  "type": "string",
                                  "example": "2022-06-09T15:17:34.000000Z"
                                },
                                "updated_at": {
                                  "type": "string",
                                  "example": "2022-06-09T15:17:34.000000Z"
                                },
                                "courier": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "integer",
                                      "example": 608,
                                      "default": 0
                                    },
                                    "name": {
                                      "type": "string",
                                      "example": "Ahmet Demir"
                                    },
                                    "avatar_url": {
                                      "type": "string",
                                      "example": "https://qdelivery-api.test/images/avatar.png"
                                    }
                                  }
                                },
                                "status": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "integer",
                                      "example": 3,
                                      "default": 0
                                    },
                                    "status_category_slug": {
                                      "type": "string",
                                      "example": "assigned"
                                    },
                                    "name": {
                                      "type": "string",
                                      "example": "Atandı"
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "hub": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "integration_id": {
                                "type": "string",
                                "example": "A2"
                              },
                              "name": {
                                "type": "string",
                                "example": "Anadolu Depo"
                              }
                            }
                          },
                          "team": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Takım"
                              }
                            }
                          }
                        }
                      }
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "first": {
                          "type": "string",
                          "example": "https://qdelivery-api.test/api/integration/tasks?page=1"
                        },
                        "last": {},
                        "prev": {},
                        "next": {
                          "type": "string",
                          "example": "https://qdelivery-api.test/api/integration/tasks?page=2"
                        }
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "current_page": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "from": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "path": {
                          "type": "string",
                          "example": "https://qdelivery-api.test/api/integration/tasks"
                        },
                        "per_page": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "to": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6602b1495613fc002042a788:6602b14a5613fc002042a797"
}
```