ServicesTasksHTTP APITriggers

List trigger invocations

GET
/api/tasks/projects/{project_id}/task-triggers/{trigger_id}/invocations

List invocations by descending submission time and Task ID in fixed pages of 10. Continuations expire after one hour and are scoped to the caller, target, operation, filters and page size. This is a live listing; concurrent updates can change later pages.

This operation returns results in pages. To get the next page, send the nextPageToken value of the response as pageToken in a new request with the same parameters. When the response has no nextPageToken, there are no more pages. A page can have an empty items list before the last page.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

project_id*string
trigger_id*string
Formatuuid

Query Parameters

pageToken?string|null

Response Body

Success

application/json
  1. response
items*array<>
nextPageToken?string|null
curl -X GET 'https://api.spiraldb.dev/api/tasks/projects/string/task-triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/invocations'
{  "items": [    {      "createdAtMicros": "string",      "invocationId": "e9725468-0858-4dbb-af72-1e49c8254d68",      "occurrence": {        "journalEvent": {          "branchId": "712f308d-801e-48bc-b072-9c404734ceb7",          "commitId": "a1b223ee-0195-4e35-9b2a-72c93f345117",          "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",          "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6"        },        "type": "journalEvent"      },      "status": "accepted",      "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",      "triggerId": "b89c9c0a-30c6-475a-b185-93813e22ffcf",      "triggerRevision": "string"    }  ],  "nextPageToken": "string"}