Skip to content
DocsEvents

API reference

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.

View as Markdown

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.

Read a project’s changes feed

#

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: 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

#
NameInTypeRequiredDescription
projectIdpathid (prj_…)YesProject id: prj_ followed by 32 lowercase hex digits, for example prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
afterquerystringNoThe nextCursor of your last read, or now to start at the head. Left out: the oldest event kept. Up to 2,048 characters.
typesqueryarray 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"NoOnly 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.
waitquerynumber, 0–25NoSeconds to wait for new events when there are none yet, 0–25; 0 by default.
limitqueryinteger, 1–200NoHow 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.

FieldTypeDescription
object"list"
dataarray of Event
hasMorebooleanTrue when more events are ready to read now.
nextCursorstringAlways set: pass it as after to continue from here.

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access
404not_foundNot found
410cursor_expiredThe cursor has expired

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl 'https://taskloader.com/api/v1/projects/prj_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/events?after=now&wait=25' \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
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…"
}