API reference

Leads

A lead is an email one of your Sublaunch's free lead magnets or forms collected, before any payment.

Endpoints

The lead object

An email one of your Sublaunch's free lead magnets or forms collected.

Attributes

  • idstring
    Unique identifier for the lead.
  • objectstring
    Always lead.
  • emailstring or null
    The email, in lowercase.
  • first_namestring or null
    The first name.
  • last_namestring or null
    The last name.
  • phonestring or null
    The phone number.
  • sourcestring or null
    Where it came from, like lead_magnet.
  • lead_magnet_idstring or null
    The lead magnet that collected it.
  • fieldsarray of objects
    The form's other answers, 20 at most.
  • created_atstring
    When it was collected, ISO 8601.
Lead object
{
  "id": "Ld3xQ8mKpR",
  "object": "lead",
  "email": "alex@example.com",
  "first_name": "Alex",
  "last_name": null,
  "phone": null,
  "source": "lead_magnet",
  "lead_magnet_id": "lm2K9x",
  "fields": [
    {
      "name": "Experience",
      "value": "Two years"
    }
  ],
  "created_at": "2026-11-16T08:11:05.000Z"
}

List leads

GET/v1/leadsread scopeMCPlist_leads

Returns the Sublaunch's leads, newest first.

Query parameters

  • emailstring
    Only the lead with this email.
  • sincestring
    Only the leads collected from this date on, ISO 8601.
  • untilstring
    Only the leads collected before this date, ISO 8601.
  • limitinteger
    How many objects to return, from 1 to 100. 25 by default.
  • cursorstring
    The next_cursor of the previous page, to get the page after it. Keep the other parameters the same. See Pagination.

Returns

A list of lead objects.

Errors

  • A parameter has a value the API does not accept. param names it.
  • The cursor is not one this list gave, was made for other filters, or goes deeper than its limit.
GET/v1/leads
curl -G https://api.sublaunch.com/v1/leads \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -d limit=50
Response200
{
  "object": "list",
  "data": [
    {
      "id": "Ld3xQ8mKpR",
      "object": "lead",
      "email": "alex@example.com",
      "first_name": "Alex",
      "last_name": null,
      "phone": null,
      "source": "lead_magnet",
      "lead_magnet_id": "lm2K9x",
      "fields": [
        {
          "name": "Experience",
          "value": "Two years"
        }
      ],
      "created_at": "2026-11-16T08:11:05.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0xNVQxNzowMjo0MC4wMDBaIn0"
}