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

# Workflow Templates

> List available pre-built workflow templates you can clone.

## Authentication

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

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

## Request

### Query parameters

<ParamField query="category" type="string">
  Filter templates by category (e.g., `enrichment`, `monitoring`, `integration`).
</ParamField>

### Example request

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

## Response

```json theme={"dark"}
{
  "templates": [
    {
      "id": "tmpl_lead_enrich",
      "name": "Lead Enrichment",
      "description": "Enrich emails with company data and send to webhook",
      "category": "enrichment",
      "steps": [
        { "type": "email_lookup" },
        { "type": "company_lookup" },
        { "type": "webhook" }
      ]
    },
    {
      "id": "tmpl_breach_alert",
      "name": "Breach Alert Pipeline",
      "description": "Check dark web for breaches and notify via webhook",
      "category": "monitoring",
      "steps": [
        { "type": "darkweb_lookup" },
        { "type": "condition" },
        { "type": "webhook" }
      ]
    }
  ]
}
```

## Usage

To create a workflow from a template, pass the `template_id` in the [Create Workflow](/api-reference/endpoint/create-workflow) request:

```bash theme={"dark"}
curl -X POST "https://encrata.com/api/workflows" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "My Lead Pipeline", "template_id": "tmpl_lead_enrich" }'
```
