Skip to main content
QUERY
leads(_hasScheduledCall: Boolean, after: String, first: Number, hasScheduledCall: Boolean, query: String, status: LeadStatusInput): LeadConnection!

Arguments

_hasScheduledCall
Boolean
deprecated

The original spelling of hasScheduledCall. Prefer that one; this is kept so existing queries keep parsing.

Use hasScheduledCall
after
String
  • Pagination cursor from previous response @param after - Pagination cursor from previous response
first
Number
  • Number of results per page (1-100, default: 50) @param first - Number of results per page (1-100, default: 50)
hasScheduledCall
Boolean

Keep only leads that do (true) or do not (false) have an upcoming, non-cancelled booking. Omit for no filtering.

query
String

Free-text search over the lead's name, CRM name, email and phone.

Matches anywhere in the value, not just the start, and tolerates phone formatting. Results come back ranked by relevance rather than by created_at, so after is not honoured with this argument — a search is meant to be narrowed, not paged.

Terms shorter than 3 characters return nothing: they carry no trigram for the index to match and would scan the table.

  • Filter by lead status @param status - Filter by lead status
edges
pageInfo
totalCount
Number
Query
Response