# タスクの取得

`GET /api/task/{taskId}`

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

タスクを 1 件取得します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | 必須 | タスクの ID です。 |

## リクエスト

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

## レスポンス

- 200: Task detail
- 400: Invalid task identifier
- 401: Authentication is required
- 404: Task not found

## レスポンスの例

```json
{
  "id": 100442,
  "parentId": null,
  "projectId": 296,
  "responsibleUserId": 1127,
  "ballHoldingUserId": 1127,
  "statusId": 195,
  "milestoneId": 38,
  "sortOrder": null,
  "statusBoardSortOrder": null,
  "priorityBoardSortOrder": null,
  "responsibleUserBoardSortOrder": null,
  "ballHoldingUserBoardSortOrder": null,
  "milestoneBoardSortOrder": null,
  "name": "Write release notes",
  "planned": null,
  "actual": null,
  "priority": 1,
  "extra": null,
  "startDate": 1794182400000,
  "dueDate": 1794528000000,
  "createdAt": 1793662651065,
  "updatedAt": 1793662651065,
  "deletedAt": null,
  "tagIds": [
    90
  ],
  "description": "Summarize the changes in the new website for the **launch announcement**.",
  "files": []
}
```
