Skip to main content
GET
Get lead connection

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

leadConnectionId
string<uuid>
required

The id of the lead connection.

Query Parameters

include
string

Comma-separated related resources to embed. Allowed: company, event, lead_source, workflow, rep_primary, site_type.

Response

The requested lead connection.

id
string<uuid>

The lead connection's unique identifier.

Example:

"3f9a2b6c-1d4e-4a8b-9c2f-7e5d6a1b8c30"

tenant_id
integer

The id of your organization's account.

Example:

12

company_id
integer

The id of the company within your organization that owns this connection. See Company.

Example:

6

event_id
integer | null

The id of the marketing event this connection is associated with. Null if not set. See Event.

lead_source_id
integer | null

The id of the lead source configured for the company that leads from this connection are attributed to. Null if not set. A lead source is a marketing channel configuration in Contractors Cloud — distinct from the Lead resource returned by this API. See Lead Source.

Example:

44

workflow_id
integer | null

The id of the workflow assigned to projects created from leads through this connection. Null if not set. See Workflow.

rep_primary_id
integer | null

The id of the user set as the primary sales rep for leads created through this connection. Null if not set.

Example:

1159

site_type_id
integer | null

The id of the site type assigned to projects created from leads through this connection. Null if not set.

status_id
integer | null

The id of the project status assigned to projects created from leads through this connection (for example, Lead or Prospect). Null if not set.

is_active
boolean

Whether the connection currently accepts lead submissions. Submitting to an inactive connection returns a 403 response.

Example:

true

data_type
enum<string>

The format this connection accepts lead submissions in. json accepts a JSON object or array; excel accepts an uploaded spreadsheet; text accepts a raw text body that's parsed automatically.

Available options:
json,
excel,
text
Example:

"json"

name
string

A display name for the connection.

Example:

"Website Contact Form"

description
string | null

Free-form notes about the connection. Null if not set.

created_at
string

Timestamp when the connection was created, formatted as YYYY-MM-DD HH:MM:SS.

Example:

"2025-01-05 08:15:00"

updated_at
string

Timestamp when the connection was last updated, formatted as YYYY-MM-DD HH:MM:SS.

Example:

"2025-01-05 08:15:00"

last_lead_received_at
string | null

Timestamp of the most recently received lead through this connection, formatted as YYYY-MM-DD HH:MM:SS. Null until the first lead arrives.

Example:

"2025-02-01 14:22:03"