Everstack

Get a single workflow execution by ID

GET/v1/workflows/executions/{executionId}
GET/v1/workflows/executions/{executionId}

Your instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.

Parameters

NameInTypeRequiredDescription
executionIdpathstringYes
tenantIdquerystringNo

Responses

200 Get workflow execution details

PropertyTypeDescription
executionobject

default An unexpected error response.

PropertyTypeDescription
codeinteger
messagestring
detailsobject[]

Request

curl -X GET "http://localhost:8089/v1/workflows/executions/{executionId}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
const response = await fetch("http://localhost:8089/v1/workflows/executions/{executionId}", {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
});
const data = await response.json();
import requests

response = requests.get(
    "http://localhost:8089/v1/workflows/executions/{executionId}",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
)
data = response.json()

Response

{
  "execution": {
    "id": "string",
    "workflowId": "string",
    "tenantId": "string",
    "correlationId": "string",
    "triggerType": "string",
    "status": "string",
    "inputMessages": [
      {
        "role": "string",
        "content": "string"
      }
    ],
    "outputContent": "string",
    "resolvedModel": "string",
    "resolvedProvider": "string",
    "promptTokens": 0,
    "completionTokens": 0,
    "totalTokens": 0,
    "errorMessage": "string",
    "startedAt": "string",
    "completedAt": "string",
    "durationMs": 0,
    "eventsJson": "string",
    "ledgerJson": "string"
  }
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string"
    }
  ]
}