# タスクの本文の変更内容の取得

`GET /api/task/{taskId}/revisions/{revisionId}`

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

指定した変更の前後の本文を返します。差分はこの 2 つから作れます。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | 必須 | タスクの ID です。 |
| `revisionId` | path | integer | 必須 | 変更履歴の ID です。変更履歴の一覧で返される ID を指定します。 |

## リクエスト

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

## レスポンス

- 200: Revision bodies
- 401: Authentication is required
- 403: Not a project member
- 404: Revision not found

## レスポンスの例

```json
{
  "id": 22427,
  "createdAt": 1793662651455,
  "user": {
    "id": 1127,
    "name": "emma",
    "fullName": "Emma Carter",
    "avatarUrl": null,
    "state": "active",
    "extra": {
      "color": null
    }
  },
  "before": "Summarize the changes in the new website.",
  "after": "Summarize the changes in the new website for the **launch announcement**."
}
```
