# List body revisions for a task

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

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

Returns the activities that changed the body, newest first.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `taskId` | path | integer | required | ID of the task. |
| `beforeId` | query | integer |  | Cursor for paging. Pass the `nextBeforeId` of the previous response to get older revisions. Omit for the newest. |
| `limit` | query | integer |  | Number of revisions to return (1 to 50). |

## Request

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

## Responses

- 200: Revisions
- 400: Invalid query parameters
- 401: Authentication is required
- 403: Not a project member
- 404: Task not found

## Example response

```json
{
  "revisions": [
    {
      "id": 22427,
      "createdAt": 1793662651455,
      "user": {
        "id": 1127,
        "name": "emma",
        "fullName": "Emma Carter",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      }
    },
    {
      "id": 22425,
      "createdAt": 1793662651434,
      "user": {
        "id": 1127,
        "name": "emma",
        "fullName": "Emma Carter",
        "avatarUrl": null,
        "state": "active",
        "extra": {
          "color": null
        }
      }
    }
  ],
  "nextBeforeId": null
}
```
