Skip to main content

Customer Management — Get Lead

Fetches a single lead by phone number. Use this to look up a lead's details — and, importantly, to get its lead_id, which the task actions (Create Task, Complete Task, List Tasks) require.

Authentication Required

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

Endpoint

GET https://prod-api.superfone.co.in/superfone/enterprise/api/lead?phone={phone}

Input fields

FieldTypeRequiredDescription
phonestringYesThe lead's phone number in E.164 format (e.g. +918000000001).
Field name

The underlying query parameter is phone (not customer_phone). In Pabbly, enter the customer's phone number in the lookup field.

How to use in Pabbly

  1. Add the Get Lead action.
  2. Map the customer's phone number (E.164) into the phone field.
  3. Send a test — the response contains the lead, including its id (the lead_id).
  4. In later steps, map id from this action into the lead_id field of the task actions.

Get Lead by Phone action configured in Pabbly

Example workflow

Call Completed triggerGet Lead (by caller's phone) → Create Task (callback, using the id returned here as lead_id).

Response

Status Code: 200 OK

Returns the full lead object, including labels, lead stage, lead group, and assigned user. The id field is the lead_id used by the task actions.

{
"data": {
"id": 28148893,
"org_id": 18805,
"first_name": "Asha",
"last_name": "Rao",
"phones": [{ "phone": "+918000000001" }],
"lead_stage": { "id": 44, "title": "New Paid Cx" },
"lead_group": null,
"labels": [],
"assignee_user": null
},
"message": "success"
}
tip

The exact fields returned depend on the lead. Always map the id field forward as lead_id.

Common errors

Status CodeWhen it occursHow to fix
400Missing phone, or invalid phone formatProvide the phone in E.164 format.
401Missing or invalid API keyReconnect your Superfone account in Pabbly.
404No lead exists with that phone numberCreate the lead first with Create or Update Lead.