Skip to main content

List Labels

Search and paginate through your account's labels. Use this to discover the label names you need to pass to add_labels or remove_labels in the upsert-lead request.

List-only via API

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

Authentication Required

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

HTTP Request

GET /enterprise/api/label

Query Parameters

ParameterTypeRequiredDefaultDescription
textstringNoCase-insensitive substring filter on the label 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/label?text=hot&page=1&page_size=20" \
-H "x-api-key: your_api_key_here"

Success Response

Status Code: 200 OK

{
"data": {
"rows": [
{
"id": 17,
"org_id": 42,
"title": "Hot",
"colour": "#ff5722",
"text_colour": "#ffffff",
"status": "ACTIVE",
"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": 20,
"total_items": 1
},
"message": "success"
}

Response Fields

FieldTypeDescription
data.rows[].idnumberInternal label ID
data.rows[].titlestringLabel name — this is the value to pass in add_labels / remove_labels
data.rows[].colourstringBackground colour (hex)
data.rows[].text_colourstringText colour (hex)
data.rows[].statusstringACTIVE or DISABLED
data.rows[].created_bynumber | nullUser ID who created the label
data.rows[].updated_bynumber | nullUser ID who last updated the label
data.rows[].created_atstringISO 8601 timestamp
data.rows[].updated_atstringISO 8601 timestamp
data.total_pagesnumberTotal pages available
data.current_pagenumberPage number returned
data.page_sizenumberItems per page
data.total_itemsnumberTotal matching labels across all pages

Error Responses

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