Skip to content

Score Lead Endpoint

POST
/api/leads/score
curl --request POST \
--url http://localhost:8000/api/leads/score \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "lead": {}, "lead_id": 1 }'

Score a lead 0-100 for ICP fit, by lead_id or from an inline record.

Inline records are scored without being stored, so a workflow can rank candidates before deciding what to import.

x-workspace-id
Any of:
string
Media typeapplication/json
ScoreLeadBody
object
lead
Any of:
object
key
additional properties
any
lead_id
Any of:
integer
Examplegenerated
{
"lead": {},
"lead_id": 1
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}