Skip to content

List Prospects

Required scope: customer:read

POST /public-api/publicapi.v1.Customer/ListProspects

Lists the prospects of every customer the API key may read, oldest change first (updatedAt, then id). A prospect changes when a contact attempt is made for it (a call, message or visit and its result), when it gets a new owner or details, and when it is won.

To sync, page with cursor until nextCursor is empty, remember the largest updatedAt you received, and later ask again with that value as updatedAfter: you get only the prospects that changed since. Prospects that change within the same second may come back twice; never assume one is missed. Filter with status (open or won), customerId, ownerMemberId, sourceId or origin. pageSize is at most 100 and defaults to 50.

{
"updatedAfter": "1794590000",
"status": "open",
"pageSize": 100
}
{
"prospects": [
{
"id": "5b2e0c9a-6d1f-4a3b-8e7c-2f9a1b0c3d4e",
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04",
"status": "open",
"origin": "public_api",
"source": { "id": "a6d3c1f0-2b8e-4f7a-9c11-5e4d3b2a1f00", "name": "Website" },
"openedAt": "1794590000",
"updatedAt": "1794600000",
"contactAttemptCount": 1,
"lastContactAttempt": { "occurredAt": "1794600000", "channel": "phone", "outcome": "Call back", "outcomeKind": "follow_up" }
}
],
"nextCursor": ""
}
Generated Reference
POST /public-api/publicapi.v1.Customer/ListProspects

Lists the prospects of the customers the API key may read, oldest change first, for polling: pass updated_after (or the previous next_cursor) to get only prospects that changed since, such as a new contact attempt, a new owner or winning. Filter by status, customer, owner, source or origin. Read-only.

Request ListProspectsRequest
Response ListProspectsResponse

ListProspectsRequest

Field Type Description
page_size int32 At most 100; defaults to 50.
cursor string The next_cursor of the previous page; empty for the first page.
updated_after optional int64 Only prospects changed after this time (Unix seconds).
status string "open" or "won"; empty for both.
customer_id optional string
owner_member_id optional string
source_id optional string
origin string What opened them, as PublicProspect.origin.

ListProspectsResponse

Field Type Description
prospects repeated Prospect Oldest change first (updated_at, then id).
next_cursor string Pass as cursor for the next page; empty on the last page. To poll for later changes, pass the largest updated_at seen as updated_after.