---
title: "Events"
summary: "The changes feed: every change in a project, in a stable order without gaps, for keeping a copy in sync. Endpoints, parameters, examples and errors."
url: "https://taskloader.com/docs/api/reference/events"
---

> Documentation index: https://taskloader.com/llms.txt

# Events

The changes feed: every change in a project, in a stable order without gaps, for keeping a copy in sync. Endpoints, parameters, examples and errors.

The changes feed: every change in a project, in a stable order without gaps, for keeping a copy in sync. Events are thin (ids, types, versions and the names of changed fields), so read the resource for its content. Long-poll with `wait`; events are kept for 7 days.

More in [Changes feed](https://taskloader.com/docs/api/changes-feed.md).

## Read a project’s changes feed {#list_events}

Lists every change to a project in a stable, gap-free order after a cursor; can wait for new ones.

```http
GET /api/v1/projects/{projectId}/events
```

- **Scopes:** `tasks:read`
- **Who:** Viewer or above in the project
- **[Project-limited credentials](https://taskloader.com/docs/authentication.md#project-limited-credentials):** allowed inside the credential’s projects; anything else is `not_found`
- **Retries:** a read; safe to repeat
- **Rate limit:** the `read` bucket, or `search` when `wait` is above 0

Lists what changed in a project, in a stable order without gaps (by when each change started writing), after `after`: task created, updated, moved and deleted, comments, files, members and project changes. Events are thin (ids, versions, field names): fetch the resource for its content. A member event names the person and their role (userId, role) only to a credential with projects:read, which the members list needs too; without it, it has memberId only. The feed is complete and gap-free. Leave `after` out to start from the oldest event kept (7 days), or send `after=now` to follow only what happens next. `nextCursor` is always set; pass it as `after` next time, with the same `types`: a cursor moves past the events its types left out, so it works only with those types (other types answer 400 invalid_cursor). With `wait` (up to 25 seconds) an empty read waits for new events. Events are kept 7 days; a cursor answers 410 cursor_expired only once events after it may have been removed, which never happens within 7 days of reading it: then read the current state from the lists again and follow the feed.

#### Parameters

| Name        | In    | Type                                                                                                                                                                                                                                                                                                                                          | Required | Description                                                                                                                                                                           |
| ----------- | ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId` | path  | id (`prj_…`)                                                                                                                                                                                                                                                                                                                                  | Yes      | Project id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.                                                                               |
| `after`     | query | string                                                                                                                                                                                                                                                                                                                                        | No       | The nextCursor of your last read, or now to start at the head. Left out: the oldest event kept. Up to 2,048 characters.                                                               |
| `types`     | query | array of `"task.created"` or `"task.updated"` or `"task.moved"` or `"task.deleted"` or `"tasks.reordered"` or `"comment.created"` or `"attachment.created"` or `"attachment.deleted"` or `"attachment.preview_ready"` or `"link_preview.updated"` or `"member.added"` or `"member.removed"` or `"member.role_changed"` or `"project.updated"` | No       | Only these event types, for example ["task.created","task.moved"] (types=task.created,task.moved in a query string). Send the same types with every read of a cursor. Up to 14 items. |
| `wait`      | query | number, 0–25                                                                                                                                                                                                                                                                                                                                  | No       | Seconds to wait for new events when there are none yet, 0–25; 0 by default.                                                                                                           |
| `limit`     | query | integer, 1–200                                                                                                                                                                                                                                                                                                                                | No       | How many events, 1–200; 50 by default.                                                                                                                                                |

#### Response

`200` with a list of `Event` objects; `nextCursor` is always set: pass it back as `after` (with the same filters) on every read to carry on from there, while `hasMore` only says whether more are ready now.

| Field        | Type           | Description                                         |
| ------------ | -------------- | --------------------------------------------------- |
| `object`     | `"list"`       |                                                     |
| `data`       | array of Event |                                                     |
| `hasMore`    | boolean        | True when more events are ready to read now.        |
| `nextCursor` | string         | Always set: pass it as after to continue from here. |

Headers it sends: `Link`.

#### Errors

| Status | Code                                                        | Meaning                                    |
| ------ | ----------------------------------------------------------- | ------------------------------------------ |
| 400    | [`invalid_id`](https://taskloader.com/docs/api/errors.md#invalid_id)                 | The id is for a different kind of resource |
| 400    | [`invalid_cursor`](https://taskloader.com/docs/api/errors.md#invalid_cursor)         | The cursor is not valid                    |
| 403    | [`insufficient_scope`](https://taskloader.com/docs/api/errors.md#insufficient_scope) | The credential lacks the required access   |
| 404    | [`not_found`](https://taskloader.com/docs/api/errors.md#not_found)                   | Not found                                  |
| 410    | [`cursor_expired`](https://taskloader.com/docs/api/errors.md#cursor_expired)         | The cursor has expired                     |

And the errors every operation can return: [`invalid_request`](https://taskloader.com/docs/api/errors.md#invalid_request), [`validation_failed`](https://taskloader.com/docs/api/errors.md#validation_failed), [`token_in_url`](https://taskloader.com/docs/api/errors.md#token_in_url), [`unauthenticated`](https://taskloader.com/docs/api/errors.md#unauthenticated), [`invalid_token`](https://taskloader.com/docs/api/errors.md#invalid_token), [`rate_limited`](https://taskloader.com/docs/api/errors.md#rate_limited), [`internal_error`](https://taskloader.com/docs/api/errors.md#internal_error), [`service_unavailable`](https://taskloader.com/docs/api/errors.md#service_unavailable).

#### Example

```curl
curl 'https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/events?after=now&wait=25' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
```

```js
const response = await fetch('https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/events?after=now&wait=25', {
  headers: {
    Authorization: `Bearer ${process.env.TASKLOADER_API_KEY}`,
  },
});
if (!response.ok) {
  const problem = await response.json();
  throw new Error(`${problem.code}: ${problem.detail}`);
}
const events = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/events",
    params={"after": "now", "wait": "25"},
    headers={
        "Authorization": f"Bearer {os.environ['TASKLOADER_API_KEY']}",
    },
    timeout=30,
)
if not response.ok:
    problem = response.json()
    raise RuntimeError(f"{problem['code']}: {problem['detail']}")
events = response.json()
```

```http
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "event",
      "id": "evt_1042",
      "type": "task.moved",
      "projectId": "prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "subject": {
        "type": "task",
        "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718"
      },
      "taskKey": "TL-012",
      "data": {
        "fromStatus": "progress",
        "toStatus": "review",
        "version": 5,
        "fields": [
          "status"
        ]
      },
      "actor": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c"
      },
      "via": {
        "channel": "api",
        "label": "API key “CI”"
      },
      "occurredAt": "2026-11-18T10:00:00.123Z"
    }
  ],
  "hasMore": false,
  "nextCursor": "eyJ2IjoxLCJvIjoibGlzdF9ldmVudHMi…"
}
```
