Skip to main content
GET
/
api
/
lead-types
List Lead Types
curl --request GET \
  --url https://api.trysela.com/api/lead-types/ \
  --header 'Authorization: <api-key>'
{
  "count": 123,
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2",
  "results": [
    {
      "count": 2,
      "next": null,
      "previous": null,
      "results": [
        {
          "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"

Query Parameters

page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Case-insensitive search over lead type name.

Response

200 - application/json

Paginated list of lead types.

count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?page=2"