# getContentTemplate

Fetch one reusable template by id: name, type (EMAIL | SMS | NOTE | TASK), body, and folder. EMAIL/SMS/NOTE templates are the saved message content workflows reference; TASK templates are reusable checklist/SOP steps you instantiate with applyTaskTemplate.

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

## Variables

- `templateId`: `ID!` (required)

## Response (data, an example)

```json
{
  "workflowAutomationsQuery": {
    "contentTemplate": {
      "id": "<ID>",
      "name": "…",
      "type": "EMAIL",
      "bodyContent": "…",
      "bodyFormat": "…",
      "subjectContent": "…",
      "folderId": "<ID>",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "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": "getContentTemplate",
    "variables": {
      "templateId": "<templateId>"
    }
  }'
```
