Templates

Endpoints for retrieving templates, their tasks, and the controls within those tasks. These endpoints are typically used to look up keys needed by other API calls.


List Templates

Returns the key and name of every active template in your team.

GET /api/template/templates

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Example Request

GET https://app.checkflow.io/api/template/templates
X-API-KEY: your-api-key-here

Example Response

[
{ "id": "0e7ad584-7788-4ab1-95a6-ca0a5b444cbb", "name": "Invoice Review" },
{ "id": "1a2bc345-6789-4def-a012-b345cde67890", "name": "Onboarding Checklist" }
]

Response Codes

CodeDescription
200Returns the list of active templates.
401API key is missing or invalid.
404No active templates found.

List Template Tasks

Returns the key and name of every task in a template.

GET /api/template/tasks

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Query Parameters

ParameterTypeRequiredDescription
templateKeystring (GUID)YesThe key of the template. Use List Templates to find the key.

Example Request

GET https://app.checkflow.io/api/template/tasks?templateKey=0e7ad584-7788-4ab1-95a6-ca0a5b444cbb
X-API-KEY: your-api-key-here

Example Response

[
{ "id": "07072bc4-f1eb-4536-819a-1ddb7dc109a1", "name": "Step 1: Review Invoice" },
{ "id": "50d58518-e049-4474-84c7-036236e52923", "name": "Step 2: Approve Payment" }
]

Response Codes

CodeDescription
200Returns the list of tasks for the template.
401API key is missing or invalid.
404No tasks found for the template.

List Task Controls

Returns the controls within a task, filtered by control type. Use this to find the keys of specific controls that you want to read from or write to via the API.

GET /api/template/task-content

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Query Parameters

ParameterTypeRequiredDefaultDescription
taskKeystring (GUID)YesThe key of the task. Use List Template Tasks to find the key.
contentTypestringNoALLFilters results by control type. See supported values below.

Supported contentType Values

ValueDescription
ALLReturns all controls
ALLINPUTReturns all input controls only
ShortTextShort Text controls
LongTextLong Text controls
EmailInputEmail controls
WebsiteWebsite controls
DateDate & Time controls
DropDownDropdown controls
MultiChoiceMulti-Choice controls
SubTasksSub-Tasks controls
MembersMembers controls
TableTable controls
FileFile (content) controls
FileUploadFile Upload controls
ImageImage controls
VideoVideo controls
TextText (rich text) controls

Example Request

GET https://app.checkflow.io/api/template/task-content?taskKey=07072bc4-f1eb-4536-819a-1ddb7dc109a1&contentType=ALLINPUT
X-API-KEY: your-api-key-here

Example Response

[
{ "id": "4cb6f84c-950f-4424-aa7b-d12608419d9b", "name": "Customer Name", "type": "ShortText" },
{ "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Invoice Date", "type": "Date" }
]

Response Codes

CodeDescription
200Returns the matching controls.
401API key is missing or invalid.
404No controls found.