Skip to content

List events

Events from the last 30 days, oldest first, for repositories you can see

GET /api/v1/events

Personal token · read

Pages through recorded events in the order they were recorded, to catch up after downtime. Only events for repositories of the workspace's GitHub App installation you can see are listed, narrowed by a personal token's repository allowlist. Save next_cursor even when has_more is false or data is empty, then poll with the same filters for later events. Each poll rechecks current access; history already passed is not replayed if access expands.

Example request

Link to this section
Shell
# Set your token and resource IDs first.
API_BASE_URL="https://app.theseus.dev/api/v1"

curl --fail-with-body --request GET \
  -H "Authorization: Bearer ${THESEUS_API_TOKEN:?}" \
  "${API_BASE_URL}/events"
NameInTypeDescription
limitqueryintegerHow many items to return, from 1 to 100

Default 50 · Minimum 1 · Maximum 100

cursorquerystringA previous page's next_cursor, with the same filters

Minimum length 1 · Maximum length 2048

workspacequerystringThe workspace ID; needed unless the credential can use only one workspace

Minimum length 1 · Maximum length 64

typequerystringOnly events of this type, or family such as guide.*

One of *, guide.*, review.*, comment.*, guide.ready, guide.failed, review.approved, review.changes_requested, review.commented, review.withdrawn, comment.created, comment.edited

repositoryquerystringOnly events for this repository: its ID (rep_…) or owner/name

Minimum length 1 · Maximum length 200

sincequerystring (date-time)Only events that happened at or after this time
untilquerystring (date-time)Only events that happened before this time

A page of events

Response fields

Content type application/json

  • data array of Event required

    data fields
    • id string required

      The event, evt_…; deduplicate on it

    • type string required

      Such as guide.ready. New types may be added; skip one you do not know

    • schema_version integer required

      The version of data's schema

    • api_version string required

    • workspace_id string required

    • occurred_at string (date-time) required

    • origin string required

      live, or backfill for an event recorded when older work was converted; backfill events are never delivered to integrations. New values may be added

    • data object required

      The type's payload as it was when the event happened: repository, changeset, guide and who asked

  • next_cursor string or null required

    An opaque resume cursor, returned even on final or empty pages. Save it and poll with the same workspace and filters for later events

  • has_more boolean required

    True when more matching events were available in this read. False means caught up for now; next_cursor still resumes future polling

  • truncated boolean required

    True when events this listing would include may have been deleted by the 30-day retention: the cursor is older than the oldest kept history, or since is earlier than it. Read from the stored retention boundary, never from gaps in event order

Example responses

Link to this section

Events

Illustrative response · complete

{
  "data": [
    {
      "id": "evt_EXAMPLE",
      "type": "guide.ready",
      "schema_version": 1,
      "api_version": "v1",
      "workspace_id": "wsp_EXAMPLE",
      "occurred_at": "2026-10-08T12:00:00Z",
      "origin": "live",
      "data": {
        "repository": {
          "id": "rep_EXAMPLE",
          "full_name": "example/project",
          "github_id": 123456
        },
        "changeset": {
          "path": "example/project/pr/42",
          "kind": "pr",
          "number": 42
        },
        "guide": {
          "id": "ver_EXAMPLE",
          "head_sha": "0123456789abcdef0123456789abcdef01234567"
        },
        "requested_by": null
      }
    }
  ],
  "next_cursor": "<opaque-resume-cursor>",
  "has_more": false,
  "truncated": false
}
400 · The request is not valid

Error response fields

401 · A valid bearer token is required

Error response fields

403 · The credential's scopes do not allow this

Error response fields

404 · Not found

Error response fields

426 · Upgrade the CLI: run theseus update

Error response fields

429 · Too many requests

Headers

  • Retry-After integer

    Seconds to wait before the next request, when known

Error response fields

500 · Theseus could not complete the request; retrying will not help

Error response fields

503 · Theseus is unavailable; retry the same request

Headers

  • Retry-After integer

    Seconds to wait before the next request, when known

Error response fields

Error response fields

Content type application/problem+json

  • type string (uri) required

    Identifies the problem type; branch on code instead

  • title string required

  • status integer required

  • detail string

  • code string required

    Why the request failed. New codes may be added: treat an unknown one by its status

    One of invalid_request, unauthenticated, not_in_plan, insufficient_scope, admission_required, not_found, ambiguous, conflict, rate_limited, internal_error, unavailable, search_authorization_pending, search_unavailable, cli_upgrade_required

  • request_id string required

    Quote this when reporting the problem

  • errors array of FieldError

    With invalid_request: what is wrong with each field

    errors fields
    • path string required

      Where in the request, as dotted segments

    • message string required

  • required_scope string

    With insufficient_scope: the scope the operation needs

  • next string

    Recovery action, such as theseus update

  • candidates array of Candidate

    With ambiguous: what the request could mean; ask which

    candidates fields
    • id string required

    • path string required

    • kind string required

    • title string required

    • url string (uri) required