Skip to main content

List Lead Groups

Search and paginate through your account's lead groups. Use this to discover the group names you need to pass to lead_group_name in the upsert-lead request.

List-only via API

Only listing lead groups is supported via API. To create, edit, or delete lead groups, use the Superfone dashboard.

Authentication Required

Requires the x-api-key header. See Overview for details.

HTTP Request

GET /enterprise/api/lead-group

Query Parameters

ParameterTypeRequiredDefaultDescription
textstringNoCase-insensitive substring filter on the group title
pagenumberNo1Page number — starts at 1, not 0
page_sizenumberNo50Items per page

Try it

Loading playground…

Code Examples

curl -X GET "https://prod-api.superfone.co.in/superfone/enterprise/api/lead-group?text=inbound" \
-H "x-api-key: your_api_key_here"

Success Response

Status Code: 200 OK

{
"data": {
"rows": [
{
"id": 3,
"org_id": 42,
"title": "Inbound",
"status": "ACTIVE",
"type": null,
"created_by": 678,
"updated_by": null,
"created_at": "2026-01-15T09:00:00.000Z",
"updated_at": "2026-01-15T09:00:00.000Z"
}
],
"total_pages": 1,
"current_page": 1,
"page_size": 50,
"total_items": 1
},
"message": "success"
}

Response Fields

FieldTypeDescription
data.rows[].idnumberInternal lead group ID
data.rows[].titlestringGroup name — this is the value to pass as lead_group_name
data.rows[].statusstringACTIVE or DISABLED
data.rows[].typestring | nullOptional group type tag
data.rows[].created_atstringISO 8601 timestamp
data.rows[].updated_atstringISO 8601 timestamp
Group names must be unique to be used in upsert

Create or Update Lead matches groups by name. If two groups share a title, the upsert call returns 400 Multiple lead groups found with this name. Provide unique — keep names unique.

Error Responses

StatusMessageWhen it occurs
401UnAuthorized, Please Provide Valid API KeyMissing or invalid x-api-key