Skip to main content
GET
/
api
/
lead-types
/
{id}
Retrieve a Lead Type
curl --request GET \
  --url https://api.trysela.com/api/lead-types/{id}/ \
  --header 'Authorization: <api-key>'
{
  "id": 123,
  "name": "Refinance",
  "lead_metadata_fields": [
    {
      "key": "first_name",
      "label": "First Name",
      "helpText": "The lead's first name",
      "type": "string",
      "required": true
    },
    {
      "key": "loan_amount",
      "label": "Loan Amount",
      "helpText": "Requested loan amount",
      "type": "number",
      "required": false
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.trysela.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
integer
required

A unique integer value identifying this lead type.

Response

Lead type retrieved successfully.

Read-only lead type details.

id
integer
required
read-only

Unique identifier for this lead type. Use this value as the lead_type when creating or updating leads.

name
string
required
read-only

Customer-facing name of the lead type, such as a campaign, product, or intake flow.

lead_metadata_fields
object[]
required
read-only

Metadata fields accepted for leads with this lead type. Each field describes the key to send in lead metadata, its display label, expected value type, and whether it is required.