Run Workbook
POST
/api/workbooks/{workbook_id}/run
const url = 'http://localhost:8000/api/workbooks/example/run';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"column_ids":["example"],"fill_missing":false,"force":false,"lead_ids":[1],"row_ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/workbooks/example/run \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "column_ids": [ "example" ], "fill_missing": false, "force": false, "lead_ids": [ 1 ], "row_ids": [ 1 ] }'Run enrichment on workbook rows (v2: WorkbookRow, v1 fallback: leads DB).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workbook_id
required
Workbook Id
string
Header Parameters
Section titled “Header Parameters”Request Body
Section titled “Request Body”Media typeapplication/json
RunWorkbookRequest
Request to run enrichment on a workbook.
object
column_ids
Any of:
Array<string>
null
fill_missing
Fill Missing
Only enrich cells not already complete — fills gaps, preserves good values
boolean
force
Force
Force re-run: bypass success-skip gates. For output columns this overrides run-once and RE-PUSHES to the destination — the UI must confirm first
boolean
lead_ids
Any of:
Array<integer>
null
row_ids
Any of:
Array<integer>
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
RunWorkbookResponse
Response after starting a workbook run.
object
message
Message
string
status
Status
string
total_jobs
Total Jobs
integer
Example
{ "message": "", "status": "started", "total_jobs": 0}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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" } ]}