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

Every consent box and what the person chose, in the order they were recorded. This includes Aura's own box for appointment texts, and STOP replies. agreed is true only while they agree for the lead's current phone number.

An empty list means no consent is on file: that is not the same as declined, but treat it as no consent. A box they did not tick is only recorded once they finish the form. Consent can change after you read it, for example when the person replies STOP, so read the lead again right before you text them. The phone number is sent either way.

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

missingCurrencyRevenue

Raw settled-payment amounts with no recorded currency. These amounts cannot be added to a currency total.

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. Two values are emitted: partial once any payment has been recorded, and pending before the first one or after refunds return the total to zero. It does NOT report whether a deal is paid in full — Aura has no expected total to compare against — so do not treat partial as a shortfall. Use total_paid_cents for the amount. Denormalised on the row; payments remains the authoritative edge.

Payments made by this lead

Arguments
args
phone
String

Phone number

revenueByCurrency
[Money!]!

Settled payment totals grouped by currency. No exchange rates are applied.

Lead source attribution (UTM params, referrer)

status

Current status in sales funnel

timezone
String

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

totalRevenue
deprecated

Total revenue from this lead across all payments

Use revenueByCurrency. This field returns MIXED_CURRENCY when more than one currency is present.
updatedAt
String!

When lead was last updated

Query
Variables
Response