Skip to contentSkip to page list

Docs

List an automation's fires

What this automation has done: its fires, newest first. Metadata only (no trace ids and no trace content). Send nextCursor back as cursor to read the page after this one.

GET/api/v1/triggers/{triggerId}/fires
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/triggers/<triggerId>/fires"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "fires": [    {      "id": "string",      "triggerId": "string",      "customGraphId": "string",      "firedAt": "string",      "resolvedAt": "string"    }  ],  "nextCursor": "string"}
api-reference/triggers/get-fires

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path parameters

triggerIdstringrequired
At least 1 character

Query parameters

limitinteger
Minimum 1Maximum 100
cursorstring

The nextCursor from the previous page. Omit for the newest fires.

Responses

200

Success

application/json

firesobject[]required

One page of fires, newest first.

idstringrequired
triggerIdstringrequired
customGraphIdstring | nullrequired
firedAtstringrequired
resolvedAtstring | nullrequired
nextCursorstring | nullrequired

Pass as cursor to read the page after this one. Null on the last page.

404

Not Found

application/json

errorstringrequired
messagestring

Documentation