# 自分のタスク一覧

`GET /api/me/task/{type}`

URL: https://repsona.com/ja/api/get-me-task-type

type に today (今日やる)・responsible (担当)・ballHolding (ボール保持)・following (フォロー中) を指定して、自分のタスクを返します。参加しているプロジェクトのタスクだけが対象です。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `type` | path | today \| responsible \| ballHolding \| following | 必須 | 取得するタスクの種類です。`today` は「今日やる」に入れたタスク、`responsible` は担当しているタスク、`ballHolding` はボールを持っているタスク、`following` はフォローしているタスクです。 |

## リクエスト

```sh
curl -X GET "https://<space>.repsona.com/api/me/task/{type}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Tasks
- 400: Invalid type
- 401: Authentication is required

## レスポンスの例

```json
{
  "tasks": [
    {
      "id": 100441,
      "name": "Write release notes",
      "projectName": "Beta Launch",
      "project": {
        "id": 297,
        "name": "beta-launch",
        "avatarUrl": null
      },
      "ancestorNames": [],
      "status": null,
      "owner": {
        "id": 1126,
        "name": "reon",
        "fullName": "Reon Walls",
        "avatarUrl": null,
        "color": null
      },
      "tags": [],
      "dueDate": 1793749051067,
      "priority": null
    },
    {
      "id": 100443,
      "name": "Fix login redirect",
      "projectName": "Beta Launch",
      "project": {
        "id": 297,
        "name": "beta-launch",
        "avatarUrl": null
      },
      "ancestorNames": [],
      "status": null,
      "owner": {
        "id": 1126,
        "name": "reon",
        "fullName": "Reon Walls",
        "avatarUrl": null,
        "color": null
      },
      "tags": [],
      "dueDate": 1793835451067,
      "priority": null
    }
  ]
}
```
