Skip to main content
POST
Quote a scoring run before it starts

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

balance_credits
number
required

The workspace's credit balance now.

matches
integer | null
required

How many leads the search matches now, counted for free; null when this search has no free count or it cannot be counted right now.

max_credits
number
required

The most the run can charge: 0.5 credits for each of the fewer of max_subjects and matches. "At most N credits".

max_subjects
integer
required

The most people or companies the run would score before it stops to ask.

price_credits
number
required

Credits charged per person or company scored.