Get Workbook
GET
/api/workbooks/{workbook_id}
const url = 'http://localhost:8000/api/workbooks/example?page=1&page_size=100';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8000/api/workbooks/example?page=1&page_size=100' \ --header 'Authorization: Bearer <token>'Get workbook with paginated rows. Uses WorkbookRow (v2) or falls back to leads DB.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workbook_id
required
Workbook Id
string
Query Parameters
Section titled “Query Parameters”page
Page
integer
page_size
Page Size
integer
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkbookWithLeadsResponse
Full workbook with paginated rows.
object
page
required
Page
integer
page_size
required
Page Size
integer
rows
required
Rows
Array<object>
WorkbookLeadRowA row as it appears in a workbook — lead data + enrichment overlay.
Compatible with both v1 (leads DB) and v2 (WorkbookRow).
object
data
Data
object
key
additional properties
any
enrichments
Enrichments
object
key
additional properties
EnrichmentOverlay
Enrichment data for a single cell (AI/computed columns).
object
provenance
Any of:
Provenance
Per-fact provenance for an enriched cell value (license/freshness).
Recorded only when PROVENANCE_TRACKING_ENABLED; absent on legacy/un-enriched
cells (backward-compatible). license is a token from licenses.LICENSE_VOCAB.
null
status
Status
string
value
Value
lead
Lead
object
key
additional properties
any
total_rows
required
Total Rows
integer
workbook
required
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
{ "rows": [ { "data": {}, "enrichments": {}, "lead": {} } ], "workbook": { "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" } ]}