# Get one body revision of a task

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

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

Returns the body before and after this revision. The diff is built from the pair.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | required | ID of the task. |
| `revisionId` | path | integer | required | ID of the revision, as returned by the list of revisions. |

## Request

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

## Responses

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

## Example response

```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**."
}
```
