List events
Events from the last 30 days, oldest first, for repositories you can see
GET /api/v1/events
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# 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"Parameters
Link to this section| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many items to return, from 1 to 100 Default |
cursor | query | string | A previous page's next_cursor, with the same filtersMinimum length |
workspace | query | string | The workspace ID; needed unless the credential can use only one workspace Minimum length |
type | query | string | Only events of this type, or family such as guide.*One of |
repository | query | string | Only events for this repository: its ID (rep_…) or owner/nameMinimum length |
since | query | string (date-time) | Only events that happened at or after this time |
until | query | string (date-time) | Only events that happened before this time |
Responses
Link to this sectionA page of events
Response fields
Content type application/json
dataarray of Event requireddata fields
idstring requiredThe event,
evt_…; deduplicate on ittypestring requiredSuch as
guide.ready. New types may be added; skip one you do not knowschema_versioninteger requiredThe version of
data's schemaapi_versionstring requiredworkspace_idstring requiredoccurred_atstring (date-time) requiredoriginstring requiredlive, orbackfillfor an event recorded when older work was converted; backfill events are never delivered to integrations. New values may be addeddataobject requiredThe type's payload as it was when the event happened: repository, changeset, guide and who asked
next_cursorstring or null requiredAn opaque resume cursor, returned even on final or empty pages. Save it and poll with the same workspace and filters for later events
has_moreboolean requiredTrue when more matching events were available in this read. False means caught up for now; next_cursor still resumes future polling
truncatedboolean requiredTrue 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
sinceis earlier than it. Read from the stored retention boundary, never from gaps in event order
Example responses
Link to this sectionEvents
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
}Errors
Link to this section400 · The request is not valid
401 · A valid bearer token is required
403 · The credential's scopes do not allow this
404 · Not found
426 · Upgrade the CLI: run theseus update
429 · Too many requests
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
500 · Theseus could not complete the request; retrying will not help
503 · Theseus is unavailable; retry the same request
Headers
Retry-AfterintegerSeconds to wait before the next request, when known
Error response fields
Content type application/problem+json
typestring (uri) requiredIdentifies the problem type; branch on
codeinsteadtitlestring requiredstatusinteger requireddetailstringcodestring requiredWhy 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_requiredrequest_idstring requiredQuote this when reporting the problem
errorsarray of FieldErrorWith
invalid_request: what is wrong with each fielderrors fields
pathstring requiredWhere in the request, as dotted segments
messagestring required
required_scopestringWith
insufficient_scope: the scope the operation needsnextstringRecovery action, such as theseus update
candidatesarray of CandidateWith
ambiguous: what the request could mean; ask whichcandidates fields
idstring requiredpathstring requiredkindstring requiredtitlestring requiredurlstring (uri) required