listContentTemplates
List the organization's reusable templates, optionally filtered by type.
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.
curl https://server.goliathdata.com/api/v1/call \
-H "Authorization: Bearer $GOLIATH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operationId": "listContentTemplates",
"variables": {}
}'import { GoliathClient } from '@goliath-data/sdk'
const goliath = new GoliathClient({
apiKey: process.env.GOLIATH_API_KEY!,
baseUrl: 'https://server.goliathdata.com',
})
const result = await goliath.workflows.listContentTemplates({})const res = await fetch('https://server.goliathdata.com/api/v1/call', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GOLIATH_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
operationId: 'listContentTemplates',
variables: {}
}),
})
const { data, errors } = await res.json()Variables
The example sends only what the schema requires. Some operations also need one of several optional variables (one filter or another, say); the description above says which.
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`.
Response
What comes back under data: a list shows as one entry, and a value as its type.
{
"data": {
"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"
}
}
]
}
]
}
}
}Errors
unknown_variableA variable the operation does not declare. A typo is refused rather than silently dropped.
unauthorizedNo bearer header, or the key is invalid or revoked.
insufficient_scopeThe key lacks the scope the operation requires.
forbiddenA referenced record does not exist, was deleted, or is outside your organization. The gateway cannot tell those apart.
Behaviour
A read. It rejects an Idempotency-Key header with 400 bad_request.