Tasks

Endpoints for retrieving task details, updating task status and assignments, adding comments, and updating control values.


Get Task Details

Returns full details for a specific task, including all control values, comments, and assignees.

GET /api/task/details

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Query Parameters

ParameterTypeRequiredDescription
checklistIdintYesThe ID of the checklist that contains the task.
taskKeystring (GUID)YesThe key of the task.

Example Request

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

Response Codes

CodeDescription
200Returns the task with full details.
401API key is missing or invalid.
404Task not found.

Get Task Assignments

Returns the assignment details for all tasks assigned to a specific team member or group.

GET /api/task/assignments

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Query Parameters

ParameterTypeRequiredDefaultDescription
assigneeIdintYesThe ID of the team member or group.
assigneeTypeintYes1 for team member, 2 for group.
includeTeamMemberGroupsboolNofalseWhen true, also returns tasks assigned to groups the team member belongs to.
includeCompletedTasksboolNofalseWhen true, includes tasks that have already been completed.

Example Request

GET https://app.checkflow.io/api/task/assignments?assigneeId=7&assigneeType=1&includeCompletedTasks=false
X-API-KEY: your-api-key-here

Response Codes

CodeDescription
200Returns all task assignments for the assignee.
401API key is missing or invalid.

Update Task Status

Updates the status of a task (complete, incomplete, or not applicable).

note

This endpoint requires API version 2.0.

PUT /api/task/status

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key
X-API-VERSIONYesMust be 2.0

Request Body

{
"taskId": 5678,
"status": "Complete",
"modifiedByUserID": 7
}
FieldTypeRequiredDescription
taskIdintYesThe ID of the task to update.
statusstringYesThe new status. Values: Complete, Incomplete, NotApplicable.
modifiedByUserIDintYesThe ID of the user making the change. Use 0 for anonymous.

Response Codes

CodeDescription
200Returns the full task details after the status update.
401API key is missing or invalid.
404Task not found.

Update Task Assignments

Replaces all assignees on a task with a new set of assignees.

note

This endpoint requires API version 2.0.

PUT /api/task/assignments

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key
X-API-VERSIONYesMust be 2.0

Request Body

{
"taskId": 5678,
"assignees": [
{ "assigneeId": 7, "assigneeType": 1 },
{ "assigneeId": 3, "assigneeType": 2 }
],
"isAssignedExclusively": false
}
FieldTypeRequiredDescription
taskIdintYesThe ID of the task to update.
assigneesarrayYesList of assignees to set on the task.
assignees[].assigneeIdintYesThe ID of the team member or group.
assignees[].assigneeTypeintYes1 for team member, 2 for group.
isAssignedExclusivelyboolYesWhen true, the task is exclusively assigned to the given assignees.

Response Codes

CodeDescription
200Returns the full task details after the assignment update.
401API key is missing or invalid.
404Task not found.

Add Task Assignees by Name

Assigns team members or groups to a task by looking up their names. Optionally removes existing assignees first.

note

This endpoint requires API version 2.0.

POST /api/task/assign-by-name

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key
X-API-VERSIONYesMust be 2.0

Request Body

{
"taskId": 5678,
"assigneeNames": ["Jane Smith", "Operations Team"],
"isAssignedExclusively": false,
"deleteExistingAssignees": true
}
FieldTypeRequiredDescription
taskIdintYesThe ID of the task to update.
assigneeNamesstring[]YesNames of the team members or groups to assign.
isAssignedExclusivelyboolYesWhen true, the task is exclusively assigned to the given assignees.
deleteExistingAssigneesboolYesWhen true, all existing assignees are removed before adding the new ones.

Response Codes

CodeDescription
200Returns the full task details after the assignment.
401API key is missing or invalid.
404Task not found.

Create Task Comment

Adds a comment to a task.

POST /api/task/comment

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Request Body

{
"taskId": 5678,
"commentHtml": "<p>Please review this before sign-off.</p>",
"createdByUserID": 7
}
FieldTypeRequiredDescription
taskIdintYesThe ID of the task to comment on.
commentHtmlstringYesThe comment content as an HTML string.
createdByUserIDintYesThe ID of the user creating the comment. Use 0 for anonymous.

Response Codes

CodeDescription
200Comment created successfully.
400Comment could not be created.
401API key is missing or invalid.
404Task not found.

Delete Task Assignments

Removes all assignees from a task.

note

This endpoint requires API version 2.0.

DELETE /api/task/assignments

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key
X-API-VERSIONYesMust be 2.0

Query Parameters

ParameterTypeRequiredDescription
taskIdintYesThe ID of the task.

Example Request

DELETE https://app.checkflow.io/api/task/assignments?taskId=5678
X-API-KEY: your-api-key-here
X-API-VERSION: 2.0

Response Codes

CodeDescription
200Returns the full task details after assignments are cleared.
401API key is missing or invalid.
404Task not found.

Update Task Control Value

Updates the value of a control within a task (e.g. sets the value of a Short Text, Date, or Dropdown control).

PUT /api/task/update-task-content

Request Headers

HeaderRequiredDescription
X-API-KEYYesYour API key

Request Body

{
"taskContentID": 99,
"contentID": 55,
"key": "4cb6f84c-950f-4424-aa7b-d12608419d9b",
"contentType": "ShortText",
"name": "Customer Name",
"value": "Acme Corp"
}
FieldTypeRequiredDescription
taskContentIDintYesThe ID of the task content record.
contentIDintYesThe ID of the content control.
keystring (GUID)YesThe key of the content control.
contentTypestringYesThe type of control. See supported values below.
namestringYesThe label/name of the control.
valueanyYesThe value to set. Format depends on contentType.

Supported Content Types

contentTypeDescription
ShortTextSingle line of text
LongTextMultiple lines of text
EmailInputEmail address
WebsiteWebsite URL
DateDate, time, or date and time
DropDownSingle selected item
MultiChoiceOne or more selected items
SubTasksSub-task checklist
MembersSelected team members or groups
TableGrid of cell values
TextRich text content
ImageImage
VideoVideo
FileFile

Response Codes

CodeDescription
200Control value updated successfully.
400Control value could not be updated.
401API key is missing or invalid.
404Control not found.