Automations · Workflows
Fetches an execution's timeline.
GET
https://api.pozy.ai/v1/workflows/{workflowId}/executions/{executionId}/eventslistWorkflowExecutionEvents
Guide: Workflows
Request
Send your API key as Authorization: Bearer pz_live_.... Read-only keys can call it. Keys with the messages resource group disabled get 403 resource_group_disabled. Authentication
Path parameters
| Name | Type | Notes |
|---|---|---|
workflowIdrequired | string | |
executionIdrequired | string |
Example
curl -X GET "https://api.pozy.ai/v1/workflows/6e299f518f373bfd669857c4/executions/6c1d5173be24d1f9e4e6f57f/events" \
-H "Authorization: Bearer $POZY_API_KEY"const res = await fetch("https://api.pozy.ai/v1/workflows/6e299f518f373bfd669857c4/executions/6c1d5173be24d1f9e4e6f57f/events", {
headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);import os
import requests
resp = requests.get(
"https://api.pozy.ai/v1/workflows/6e299f518f373bfd669857c4/executions/6c1d5173be24d1f9e4e6f57f/events",
headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
timeout=30,
)
resp.raise_for_status()
print(resp.json())Response
200 on success
successbooleanexecutionobjectidstringstatusstringOne of
running,waiting,completed,exited,failed.startedAtstring (date-time)Can be null.
completedAtstring (date-time)Can be null.
eventsarray of object9 child fields
actionstringOne of
execution_started,execution_completed,execution_exited,execution_paused,execution_resumed,node_started,node_completed,node_failed,node_skipped.statusstringOne of
success,failed,pending. Can be null.nodeIdstringCan be null.
nodeTypestringCan be null.
sourceHandlestringCan be null.
durationMsintegerCan be null.
errorMessagestringCan be null.
metaobjectCan be null.
atstring (date-time)
200 response
{
"success": true,
"execution": {
"id": "6bfebd43ddc270f6d2c56fc5",
"status": "running",
"startedAt": "2026-10-02T09:00:00.000Z",
"completedAt": "2026-10-02T09:00:00.000Z"
},
"events": [
{
"action": "execution_started",
"status": "success",
"nodeId": "661065480d0716ebcd3f1af3",
"nodeType": "string",
"sourceHandle": "acme",
"durationMs": 1,
"errorMessage": "Hello from Pozy",
"meta": {},
"at": "2026-10-02T09:00:00.000Z"
}
]
}Errors
Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:
| 400 | invalid_request_error | A parameter or body field is missing or invalid. param names it. |
| 401 | authentication_error | The API key is missing, revoked or expired. |
| 403 | permission_error | The key is scoped to other profiles or has this resource group disabled. |
| 404 | not_found | Nothing with that id exists in your workspace. |
| 429 | rate_limit_error | Too many requests this minute. Wait for Retry-After seconds. |
Every code is listed in Errors.
More in Workflows
GETList workflowsPOSTCreate workflowGETGet workflow with graphPATCHUpdate workflowDELDelete workflowPOSTActivate workflowPOSTPause workflowGETList workflow runsPOSTManually start a workflow runPOSTStart an API-triggered workflowPOSTDuplicate a workflowGETList a workflow's version historyGETGet a specific workflow versionPOSTRestore a workflow version