Skip to main content
POST
Start scoring a lead search

Authorizations

X-API-Key
string
header
required

Body

application/json

A scoring run to start: a lead search and how many good fits to find, or a sample of its rows.

Send exactly one of goal and sample_size; with neither, the goal is 100.

The lead search to score, exactly as POST /leads/length/ takes it. People, companies and the other searches whose rows have LinkedIn can be scored.

goal
integer | null

How many good fits (Strong) to find. The run scores at most 5 people or companies per good fit asked for, so it is never charged more than 0.5 x 5 x goal credits. 100 when neither this nor sample_size is sent.

Required range: 1 <= x <= 1000
include_people_already_in_tables
boolean
default:true

Score people already in the workspace's tables too.

request_id
string | null

Your idempotency key: a repeat with the same key answers the run it made.

Required string length: 1 - 64
sample_rows
PreviewPickSchema · object[] | null

With sample_size: the preview rows to score, each by the ref the preview gave it (row_refs) for a people or company search. The sample scores exactly these, not whichever rows the search lists first when it is read again.

Maximum array length: 8
sample_size
integer | null

Score only the search's first rows, as many as this (at most 8): the rows the preview shows. A later full run reuses their verdicts at no charge.

Required range: 1 <= x <= 8
then_bring
RankThenBringSchema · object | null

Bring the good fits to a table by itself: once the run is done, or as they are found with fill_as_found.

Response

Successful Response

brought_table_id
string<uuid> | null
required

The table it brought its good fits into, once it has.

counters
RankRunCountersSchema · object
required

Every count the run's strip and tabs show, so a page polls one route.

created_at
string<date-time>
required
credits_charged
number
required

What it has charged so far.

done_reason
enum<string> | null
required

Why it is done; null otherwise.

Available options:
goal_reached,
search_exhausted,
sample_done
goal
integer | null
required

The good fits asked for; null for a sample.

icp_version_at_start
integer
required

The business context version it started on; 0 before any version.

id
string<uuid>
required
include_people_already_in_tables
boolean
required
max_credits
number
required

The most it can charge.

max_subjects
integer
required

The most it scores before it stops to ask.

pause_reason
enum<string> | null
required

Why it is paused; null otherwise.

Available options:
by_person,
no_credits,
low_yield,
interrupted,
source_unavailable
price_credits
number
required

Credits charged per person or company scored.

query_digest
string
required

The search's fingerprint: list the runs of one search with it.

record_type
enum<string>
required

The lead search it scores.

Available options:
people,
companies,
signal_companies,
signal_people,
lookalikes,
local_businesses,
hiring_companies,
backlinks,
search_results,
post_authors,
startup_launches
sample_size
integer | null
required

The rows a sample scores; null for a goal run.

search_summary
string
required

The search in a few words, as a table would be named.

source
enum<string>
required

Where it was started from.

Available options:
find_leads,
assistant,
mcp,
table
status
enum<string>
required

Where a ranking run stands (RANK_RUN_LIFECYCLE).

Available options:
queued,
running,
paused,
done,
stopped,
failed
status_label
string
required

The short status word: Scoring, Pausing, Paused, Stopping, Stopped, Done or Failed.

status_line
string
required

Where the run stands in one sentence, the same words the AI Assistant and MCP say: "38 of 100 good fits · 142 scored · 71 credits".

stop_reason
enum<string> | null
required

Why it stopped; null otherwise.

Available options:
by_person,
expired,
rerun
subject_kind
enum<string>
required

Whether it scores people or companies.

Available options:
person,
company
then_bring
RankThenBringSchema · object | null
required

What it brings to a table by itself once done; null brings nothing.

updated_at
string<date-time>
required

When it last moved. Pass it as the subjects list's updated_after to read only the subjects that moved since.