> ## 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.

# Get Workflow Run

> Get detailed run information including step-by-step results.

## Authentication

Requires a JWT token or API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_TOKEN
```

## Request

<ParamField path="id" type="string" required>
  The run ID.
</ParamField>

### Example request

```bash theme={"dark"}
curl "https://encrata.com/api/workflows/runs/run_def456" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Response

```json theme={"dark"}
{
  "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
}
```
