Skip to main content
GET
/
api
/
workflows
/
runs
/
{id}
Get Workflow Run
curl --request GET \
  --url https://encrata.com/api/workflows/runs/{id} \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.encrata.com/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

Requires a JWT token or API key in the Authorization header.
Authorization: Bearer YOUR_TOKEN

Request

id
string
required
The run ID.

Example request

curl "https://encrata.com/api/workflows/runs/run_def456" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

{
  "id": "run_def456",
  "workflow_id": "wf_abc123",
  "workflow_name": "Lead enrichment pipeline",
  "status": "completed",
  "input": { "email": "jane@company.com" },
  "steps": [
    {
      "id": "step1",
      "type": "email_lookup",
      "status": "completed",
      "output": { "name": "Jane Doe", "company": "Acme Inc" },
      "duration_ms": 1200,
      "credits_used": 1
    },
    {
      "id": "step2",
      "type": "company_lookup",
      "status": "completed",
      "output": { "name": "Acme Inc", "industry": "Technology" },
      "duration_ms": 800,
      "credits_used": 1
    },
    {
      "id": "step3",
      "type": "webhook",
      "status": "completed",
      "output": { "status_code": 200 },
      "duration_ms": 350,
      "credits_used": 0
    }
  ],
  "credits_used": 2,
  "started_at": "2026-06-01T10:00:00Z",
  "completed_at": "2026-06-01T10:00:05Z",
  "duration_ms": 5200
}