Create Workbook From Jobs
POST
/api/workbooks/from-jobs
const url = 'http://localhost:8000/api/workbooks/from-jobs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"job_ids":["example"],"name":"example","workbook_id":"example"}'};
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/from-jobs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "job_ids": [ "example" ], "name": "example", "workbook_id": "example" }'Create a workbook from job results, or merge new jobs into an existing workbook.
The workbook filter_criteria uses job_ids to show leads from those specific jobs. If workbook_id is provided, the new job IDs are merged into the existing workbook’s filter.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkbookResponse
Workbook response — returned from API.
object
columns_config
required
Columns Config
Array<object>
object
key
additional properties
any
completed_rows
required
Completed Rows
integer
description
required
Description
string
id
required
Id
string
name
required
Name
string
source_type
Source Type
string
status
required
Status
string
sync_to_leads
Sync To Leads
boolean
total_rows
required
Total Rows
integer
Example
{ "source_type": "empty", "sync_to_leads": true}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" } ]}