The API enables you to retrieve task data from the case management system with required filters for status, priority, assignment, channels, and date ranges.
curl --location 'https://{{host}}/caseManagement/api/public/analytics/{{streamId}}/getTasks' \
--header 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
--header 'AccountId: {{accountId}}' \
--header 'client-app: unified' \
--header 'X-Timezone-Offset: -330' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'auth: {{jwt-code}}' \
--header 'state: configured' \
--header 'Iid: st-084d3c5e-376a-559f-9987-a012bb2bxxxx' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Accept: application/json, text/plain, */*' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
--header 'bot-language: en' \
--header 'app-language: en' \
--header 'Referer: http://localhost/builder/app/welcomeflows' \
--header 'sec-ch-ua-platform: "Linux"' \
--data '{
"skip": 0,
"limit": 50,
"searchText": "",
"unresolved": false,
"unassigned": true,
"mytask": false,
"selectedColumns": [],
"priority": [
"Critical"
],
"agents": [],
"status": [
"In-Progress"
],
"customFields": [],
"ETAlist": [],
"channel": [
"rtm"
],
"queues": [],
"startDate": "2025-05-26T18:30:00.000Z",
"endDate": "2025-05-27T18:29:59.999Z",
"sortBy": {
"dueDate": "desc"
}
}'
{
"results": [
{
"_id": "ti-c7c61c9-1392-45d3-b163-3622d737xxxx",
"caseId": "ci-884ca36-6b0c-40bc-ba5c-bc8a8c6cxxxx",
"caseRefId": "CS000108",
"taskTmp": "Test task temp",
"name": "This is demo task",
"lname": "this is demo task",
"tags": [],
"userInfo": {
"_id": "u-fd371c0a-3168-5a02-83dd-f4ba5597xxxx",
"name": "dummy"
},
"sessIds": [],
"accountId": "6810a48a8b40a4e0175cxxxx",
"iId": "st-d140086f-4d0a-59fa-9d28-b5fc23e9xxxx",
"orgId": "o-734f0871-3217-515b-bd5f-36abef3cxxxx",
"convIds": [],
"status": {
"_id": "sts-599163e-b869-4532-bbb3-c76a3d08xxxx",
"name": "Open",
"lname": "open",
"statusCategory": "open",
"type": "system",
"desc": "When a new case/task is created",
"isEnabled": true,
"isActive": true
},
"source": "rtm",
"conversationType": "TASK",
"fields": [
{
"_id": "fd-3380ddb-a87d-4b25-8db6-5002e5c8xxxx",
"show": true,
"displayName": "Description",
"lname": "description",
"desc": "Transcription based on the conversation summary",
"isEnabled": true,
"isActive": true,
"metaData": {
"type": "textarea",
"displayName": "Description",
"name": "description",
"description": "Transcription based on the conversation summary",
"placeholder": "Enter description",
"readOnly": false,
"tooltipText": "Transcription based on the conversation summary"
},
"type": "system",
"required": true,
"dataType": "textarea"
},
{
"_id": "fd-7ab71aa-5da2-4cd1-a7ec-0e2468b8xxxx",
"show": true,
"displayName": "Due Date",
"lname": "due date",
"desc": "Date/time to complete a case",
"isEnabled": true,
"isActive": true,
"metaData": {
"type": "datetime",
"displayName": "Due Date",
"name": "dueDate",
"description": "Date/time to complete a case",
"placeholder": "Enter date",
"readOnly": false,
"tooltipText": "Date/time to complete a case"
},
"type": "system",
"required": true,
"dataType": "datetime"
},
{
"_id": "fd-a165979-63b6-498b-85b8-c48098edxxxx",
"show": true,
"displayName": "Title",
"lname": "title",
"desc": "Title of the field",
"isEnabled": true,
"isActive": true,
"metaData": {
"type": "input",
"displayName": "Title",
"name": "title",
"description": "Title of the field",
"placeholder": "Enter title",
"readOnly": false,
"tooltipText": "Title of the field"
},
"type": "system",
"required": true,
"dataType": "input"
}
],
"participants": [],
"priority": {
"_id": "pr-6189896-de68-4e02-8d56-813a68bdxxxx",
"name": "Medium",
"lname": "medium",
"type": "system",
"desc": "Moderate urgency",
"color": "#16A34A",
"isEnabled": true,
"isActive": true,
"score": 10
},
"refId": "TS000105",
"assigneeType": "unassigned",
"isCustTsk": false,
"isActive": true,
"attachments": [],
"feedback": [],
"createdBy": {
"name": "Rayirth P",
"_id": "u-320fa237-51be-5c46-a046-14e97c770xxxx",
"profImage": "no-avatar"
},
"updatedBy": {
"name": "Rayirth P",
"_id": "u-320fa237-51be-5c46-a046-14e97c77xxxx",
"profImage": "no-avatar"
},
"timestampValue": 1748433938795,
"activityIds": [],
"commentIds": [],
"resolutionCmts": [],
"isBreached": false,
"queues": [],
"channel": [],
"createdAt": "2025-05-28T12:05:38.807Z",
"updatedAt": "2025-05-28T12:05:38.807Z",
"currAssignee": {},
"ETA": ""
},
],
"page": 1,
"limit": 10,
"hasMore": false,
"totalPages": 1,
"totalResults": 1
}