Skip to main content

Customer Management — List Tasks

Returns a paginated history of tasks for a lead.

Authentication Required

Runs against your organization using the Superfone connection (your API key).

Prerequisites

You need the lead's lead_id. If you only have a phone number, run Get Lead first.

Endpoint

GET https://prod-api.superfone.co.in/superfone/enterprise/api/lead/{lead_id}/task?page={page}&page_size={page_size}

Input fields

FieldTypeRequiredDescription
lead_idnumberYesThe lead whose tasks to list. Obtain it from Get Lead.
pagenumberNoPage number, starting at 1. Defaults to 1.
page_sizenumberNoRecords per page. Defaults to 20. Maximum is 20 — a larger value returns a 400.

How to use in Pabbly

  1. Add the List Tasks action.
  2. Map lead_id (from a Get Lead step).
  3. Optionally set page and page_size (max 20).
  4. Save and test.

List Tasks action configured in Pabbly

Example workflow

Daily scheduled triggerGet LeadList Tasks → filter for overdue tasks → notify the assigned rep.

Response

Status Code: 200 OK

Returns a pagination envelope: the rows array plus paging metadata.

{
"data": {
"rows": [
{ "id": 991234, "type": "FOLLOW_UP_CALL", "task_status": "PENDING", "due_date": "2026-06-01T10:30:00.000Z" }
],
"total_pages": 1,
"current_page": 1,
"page_size": 20,
"total_items": 1
},
"message": "success"
}
FieldTypeDescription
data.rowsarrayThe tasks on this page.
data.total_pagesnumberTotal number of pages.
data.current_pagenumberThe page returned.
data.page_sizenumberRecords per page.
data.total_itemsnumberTotal tasks for the lead.

Common errors

Status CodeWhen it occursHow to fix
400page_size greater than 20, or not a positive integerUse a page_size between 1 and 20.
401Missing or invalid API keyReconnect your Superfone account in Pabbly.
404Lead not foundConfirm the lead_id belongs to your org.