Skip to main content
A LeadSource represents where a project or inbound lead originated, such as an advertising campaign or referral program configured for a company. A project’s lead_id and a lead connection’s lead_source_id both reference these records. Lead sources are read-only through the Lead Sources endpoints.
id
integer

The lead source's unique identifier.

Example:

372

tenant_id
integer

The id of your organization's account.

Example:

12

company_id
integer

The id of the company this lead source belongs to.

Example:

6

lead_category_id
integer | null

The id of the category this lead source is grouped under. Null if uncategorized.

Example:

4

code
string | null

A short reference code for the lead source. Null if not set.

Example:

"FB-ADS"

name
string

The lead source's name.

Example:

"Facebook Ads"

starts_at
string<date>

The date the lead source becomes effective, formatted as YYYY-MM-DD.

Example:

"2024-01-01"

ends_at
string<date>

The date the lead source stops being effective, formatted as YYYY-MM-DD.

Example:

"2025-12-31"

description
string | null

Free-form notes about the lead source. Null if not set.

Example:

"Paid social lead generation campaign"

is_active
boolean

Whether the lead source is active. Only active lead sources can be selected when creating a project.

Example:

true

cost
string

The lead source's associated cost (for example, advertising spend), formatted as a decimal string with 2 decimal places.

Example:

"1500.00"

total_used
integer

The number of projects currently using this lead source. Recalculated automatically as projects are created or removed.

Example:

42