Skip to main content
GET
Get lead source

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Path Parameters

companyId
integer
required

The id of the company.

leadSourceId
integer
required

The id of the lead source.

Query Parameters

include
string

Comma-separated related resources to embed. Allowed: company, category.

Response

The requested lead source.

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