# History

A task's change history, as its Activity shows it in the app.

## List a task's history

`GET /orgs/{org}/tasks/{task}/history`

Scope: `tasks:read`

Every change to the task as its History tab shows it: the creation, each field's change with the value before and after, and each status change. Oldest first (sort=-at for newest first), cursor paged.

### Path parameters

- `org` (string, required): The organisation's id (or its address name). [1 to 100 characters]
- `task` (string, required): The task's id or key (WEB-12). [1 to 60 characters]

### Query parameters

- `limit` (integer): How many items a page holds, 1 to 200. [from 1 to 200; default 50]
- `cursor` (string): The next_cursor of the previous page; leave it out for the first page. [at most 1000 characters]
- `count` (string): true adds total, the number of items in the whole list. [one of: true, false]
- `sort` (string): at (the default) or -at. [one of: at, -at]
- `fields` (string): Only these fields, comma-separated: id, kind, field, field_name, how, at, actor, from_status, to_status, old_value, new_value, old_text, new_text. id always comes; the fields not asked for are left out, required or not.

### Request

```sh
curl -X GET "https://projqo.example/api/v1/orgs/{org}/tasks/{task}/history" \
  -H "Authorization: Bearer $PROJQO_TOKEN"
```

### Answer: 200

```json
{
  "items": [
    {
      "id": "9b0c1d2e-3f4a-4b5c-8d6e-7f8a9b0c1d2e",
      "kind": "change",
      "field": "priority",
      "field_name": "Priority",
      "how": "edit",
      "at": "2026-12-01T09:12:00.000Z",
      "actor": {
        "id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
        "name": "Priya Shah",
        "former": false
      },
      "old_value": "0e1f2a3b-4c5d-4e6f-8a7b-9c0d1e2f3a4b",
      "new_value": "1f2a3b4c-5d6e-4f7a-8b9c-0d1e2f3a4b5c",
      "old_text": "Medium",
      "new_text": "High"
    }
  ],
  "next_cursor": null
}
```

### Errors

- 400 `invalid`: invalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.
- 401 `invalid_token`: invalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).
- 403 `insufficient_scope`: insufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.
- 404 `not_found`: not_found: Nothing is at this address, or the token's person can't see it: the answer is the same.
- 429 `rate_limited`: rate_limited: Too many calls in this minute, for the token or for the whole organisation.
- 500 `internal`: internal: Something went wrong on projqo's side (never your mistake).
