Skip to main content

List Source Types

Search and paginate through the catalog of valid source_type values that can be passed when creating or updating a lead.

Read-only catalog

Source types are system-defined and maintained by Superfone. They cannot be created, edited, or deleted — neither via API nor from the dashboard. Use this endpoint only to discover the valid title values to send as source_type.

Authentication Required

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

HTTP Request

GET /enterprise/api/source-type

Query Parameters

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

Success Response

Status Code: 200 OK

{
"data": {
"rows": [
{ "id": 1, "title": "CSV_UPLOAD" },
{ "id": 2, "title": "FACEBOOK_INTEGRATION" },
{ "id": 3, "title": "PHONE_CONTACT" },
{ "id": 4, "title": "WHATSAPP_MESSAGE" },
{ "id": 5, "title": "WHATSAPP_INTEGRATION" },
{ "id": 6, "title": "PABBLY" },
{ "id": 7, "title": "OTHERS" }
],
"total_pages": 1,
"current_page": 1,
"page_size": 50,
"total_items": 7
},
"message": "success"
}

Response Fields

FieldTypeDescription
data.rows[].idnumberInternal source type ID
data.rows[].titlestringSource type name — this is the value to pass as source_type in the upsert-lead request
data.total_pagesnumberTotal pages available
data.current_pagenumberPage number returned
data.page_sizenumberItems per page
data.total_itemsnumberTotal matching source types across all pages

Error Responses

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