Skip to main content
QUERY
lead(id: String!): Lead!

Arguments

id
String!
required
  • Lead UUID @param id - Lead UUID

Returns

attribution
AttributionMap

Every attribution parameter this lead's URLs carried. Provider-specific keys can appear without a schema version change.

Call records for this lead, including booking intents and scheduled bookings

Supports filtering and pagination. Returns a connection for Relay-style pagination.

Arguments
args
company
String

Company name

completedCallCount
Number!

Number of completed calls

createdAt
String!

When lead was created

daysSinceCreated
Number!

Days since lead was created

disqualificationData
JSON

Why this lead was disqualified during booking: the form-field state and the ruleset that fired. Null when the lead was not disqualified.

email
String

Email address

hasScheduledCall
Boolean!

Whether lead has any scheduled call in the future

id
String!

Unique identifier

lastPaymentAt
String

When this lead most recently paid. Null if they never have.

latestCall

Most recent call

name
String

Full name

nextCall

Next scheduled call

notes
[Note!]!

Additional notes about the lead

paymentCount
Number

How many payments this lead has made.

paymentStatus
String

Rolled-up payment state for this lead (pending, partial, paid, ...). Denormalised on the row; payments remains the authoritative edge.

Payments made by this lead

Arguments
args
phone
String

Phone number

Lead source attribution (UTM params, referrer)

status

Current status in sales funnel

timezone
String

Lead's timezone (e.g., "America/New_York")

totalRevenue

Total revenue from this lead across all payments

updatedAt
String!

When lead was last updated

Query
Variables
Response