---
description: Fetch all tasks by creation between two given dates.
---

# \[GET] Creation Date

#### Base URL:

```javascript
{YOUR-DOMAIN}/upload/ost_wbs/
```

#### \[ Header ] Authentication

| Field    |   Type   | Mandatory |
| -------- | :------: | --------- |
| `apikey` | `string` | ✔️        |

#### \[ Body ] parameters

<table><thead><tr><th>Option</th><th>Type</th><th width="150" align="center">Mandatory</th></tr></thead><tbody><tr><td><code>query</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>condition</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>sort</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>ticket_id</code></td><td><code>int</code></td><td align="center">✔️</td></tr><tr><td><code>start_date</code></td><td><code>string</code></td><td align="center">✔️</td></tr><tr><td><code>end_date</code></td><td><code>string</code></td><td align="center">✔️</td></tr></tbody></table>

#### Body request example:

```json
{
"query":"tasks",
"condition":"all",
"sort": "creationDate",
"parameters":{
    "ticket_id": 23,
    "start_date":"1990-01-01 00:00:00",
    "end_date":"2022-06-27 23:59:59"
    }
}
```

#### Status Code

{% tabs %}
{% tab title="200 OK" %}
```json
{
    "status": "Success",
    "time": 0.002454042434692383,
    "data": {
        "total": 3,
        "tasks": [
            {
                "task_id": "18",
                "title": "Titulo 1",
                "description": "<p>Titulo 1</p>",
                "created": "2022-06-27 22:10:12"
            },
            {
                "task_id": "19",
                "title": "Titulo 2",
                "description": "<p>Titulo 2<br /></p>",
                "created": "2022-06-27 22:10:23"
            },
            {
                "task_id": "20",
                "title": "Titulo 3",
                "description": "<p>Titulo 3</p>",
                "created": "2022-06-27 22:10:54"
            }
        ]
    }
}
```
{% endtab %}

{% tab title="204 No Content" %}
```json
{
    "status": "Error",
    "data": "No items found."
}
```
{% endtab %}
{% endtabs %}
