# listContentTemplates

List the organization's reusable templates, optionally filtered by type (EMAIL | SMS | NOTE | TASK) or folderId. Pass type: TASK to find the saved checklist/SOP steps that applyTaskTemplate runs against a contact. Returns the template id to use in getContentTemplate / updateContentTemplate / applyTaskTemplate.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listContentTemplates", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `type`: `ContentTemplateType` (one of `EMAIL`, `SMS`, `NOTE`, `TASK`, `TASK_SET`). TASK_SET: A named collection of TASK templates, each with its own due offset and time-of-day, applied to a contact in one gesture. Carries no body and no taskConfig of its own: see `ContentTemplate.taskSetSteps`.
- `folderId`: `ID`

## Response (data, an example)

```json
{
  "workflowAutomationsQuery": {
    "listContentTemplates": [
      {
        "id": "<ID>",
        "name": "…",
        "type": "EMAIL",
        "folderId": "<ID>",
        "updatedAt": "2026-01-01T00:00:00.000Z",
        "taskSetSteps": [
          {
            "id": "<ID>",
            "taskTemplate": {
              "id": "<ID>",
              "name": "…"
            },
            "dueOffset": {
              "amount": 0,
              "unit": "DAYS"
            },
            "preferredTimeOfDay": {
              "hour": 0,
              "minute": 0,
              "timezone": "IDLW"
            }
          }
        ]
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listContentTemplates",
    "variables": {}
  }'
```
