> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Prospect discovery

> Revor AI continuously finds companies or people that match natural-language criteria and stores them in a prospect list that supports pagination and live updates. New integrations can use /api/v2/prospect-lists; existing JSON fields continue to call this resource a webset.

Revor AI continuously finds companies or people that match natural-language criteria and stores them in a prospect list that supports pagination and live updates. New integrations can use `/api/v2/prospect-lists`; existing JSON fields continue to call this resource a `webset`.

## Compatibility

> [!NOTE]
>
> All existing `/api/v2/websets` endpoints remain supported. The new paths execute the same handlers.

| Existing path | Recommended path |
| - | - |
| `/api/v2/websets` | `/api/v2/prospect-lists` |
| `/api/v2/websets/{webset_id}` | `/api/v2/prospect-lists/{webset_id}` |
| `/api/v2/websets/{webset_id}/strategy` | `/api/v2/prospect-lists/{webset_id}/search-plan` |
| `/api/v2/websets/{webset_id}/items` | `/api/v2/prospect-lists/{webset_id}/prospects` |
| `/api/v2/websets/{webset_id}/find-more` | `/api/v2/prospect-lists/{webset_id}/expand` |

Both stream endpoints also remain available under the corresponding old and new paths. Parameters, response fields such as `webset.id` and `webset_id`, permissions, SSE event names, and billing rules are unchanged. URLs in existing response fields may still use `/api/v2/websets` and remain valid. When retrying the same operation through either URL, keep the same API key, request body, and `Idempotency-Key`; both URLs share the original idempotency record.

## Recommended workflows

### Create a new list

**1. Create a list**

Call [`POST /prospect-lists`](/docs/api/v2/websets-create) and save `webset.id`.

**2. Get an authoritative snapshot**

Call [`GET /prospect-lists/{id}/prospects`](/docs/api/v2/websets-items) for an authoritative snapshot.

**3. Open the live stream**

Open [Items SSE](/docs/api/v2/websets-items-stream.md) with the snapshot's `stream_cursor + items_revision`.

**4. Apply incremental updates**

Apply `items.changed` events until `complete`.

**5. Handle reset events**

On `reset`, replace local state with a new snapshot and reconnect from its checkpoint.

### Find more prospects

**1. Save the checkpoint**

Read the current Items snapshot and retain the checkpoint from its first page.

**2. Start an expand job**

Call [`POST /prospect-lists/{id}/expand`](/docs/api/v2/websets-find-more) and save `item.id`.

**3. Subscribe to the expand stream**

Open [Find More SSE](/docs/api/v2/websets-find-more-stream.md) with that `job_id` and the old checkpoint.

**4. Apply changes**

Apply changes until `complete`.

> [!NOTE]
>
> Snapshot first, then stream. This closes the gap between the two requests. A stream opened without a checkpoint starts at the latest event and only delivers future changes.

## Endpoints

> [card] [POST /api/v2/prospect-lists](/docs/api/v2/websets-create.md)
>
> Create a company or person prospect list

> [card] [GET /api/v2/prospect-lists](/docs/api/v2/websets-list.md)
>
> Page through the current user's lists

> [card] [GET /api/v2/prospect-lists/\{id}](/docs/api/v2/websets-detail.md)
>
> Get status, criteria, and progress

> [card] [GET /api/v2/prospect-lists/\{id}/search-plan](/docs/api/v2/websets-strategy.md)
>
> Read criteria and search strategy

> [card] [GET /api/v2/prospect-lists/\{id}/prospects](/docs/api/v2/websets-items.md)
>
> Page through an authoritative item snapshot

> [card] [GET /api/v2/prospect-lists/\{id}/prospects/stream](/docs/api/v2/websets-items-stream.md)
>
> Stream state, strategy, and item changes

> [card] [POST /api/v2/prospect-lists/\{id}/expand](/docs/api/v2/websets-find-more.md)
>
> Continue discovery on an existing list

> [card] [GET /api/v2/prospect-lists/\{id}/expand/stream](/docs/api/v2/websets-find-more-stream.md)
>
> Stream one specific Find More operation

## Permissions

Reads and SSE require `websets:read`. Create and Find More require `websets:write`. Resources are isolated by the API key owner's user account; another user's ID returns `404 webset_not_found`.

## Statuses

```text Status values theme={null}
draft | generating_criteria | ready | queued | searching | verifying |
completed | failed | cancelled
```

> [!WARNING]
>
> A `preparation_job` only reports whether creation or Find More started successfully. The Webset status reports whether prospect discovery is complete.

## Two cursor types

* `next_cursor` is an opaque REST pagination cursor. Pass it unchanged to the next page.
* `stream_cursor` is a numeric SSE event cursor. Store it together with `items_revision`.
* The cursor types are not interchangeable.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.