Skip to content

Add Column

POST
/api/workbooks/{workbook_id}/columns
curl --request POST \
--url http://localhost:8000/api/workbooks/example/columns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "column": { "channels": {}, "condition": "example", "destination": "example", "destination_config": {}, "formula": "example", "http_body": "example", "http_extract": "example", "http_headers": {}, "http_method": "example", "http_url": "example", "icp": {}, "id": "example", "input_columns": [ "example" ], "lead_field": "example", "max_steps": 1, "name": "example", "output_format": "example", "prompt": "example", "provider": "example", "target_field": "example", "target_rows": 1, "type": "lead_field", "verify": true, "waterfall": [ "example" ], "width": 200 } }'

Add a new column to the workbook.

workbook_id
required
Workbook Id
string
x-workspace-id
Any of:
string
Media typeapplication/json
AddColumnRequest

Add a new column to a workbook.

object
column
required
ColumnConfig

Configuration for a single workbook column.

object
channels
Any of:
object
key
additional properties
any
condition
Any of:
string
destination
Any of:
string
destination_config
Any of:
object
key
additional properties
any
formula
Any of:
string
http_body
Any of:
Http Body

Request body template (dict/str) for POST/PUT

http_extract
Any of:
string
http_headers
Any of:
object
key
additional properties
any
http_method
Any of:
string
http_url
Any of:
string
icp
Any of:
object
key
additional properties
any
id
required
Id

Unique column identifier

string
input_columns
Any of:
Array<string>
lead_field
Any of:
string
max_steps
Any of:
integer
name
required
Name

Display name

string
output_format
Any of:
string
prompt
Any of:
string
provider
Any of:
string
target_field
Any of:
string
target_rows
Any of:
integer
type
Type

Column type: lead_field, enrichment, waterfall, ai_formula, conditional, output

string
default: lead_field
verify
Any of:
boolean
waterfall
Any of:
Array<string>
width
Width

Column width in pixels

integer
default: 200

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
created_at
Any of:
string format: date-time
description
required
Description
string
filter_criteria
Any of:
object
key
additional properties
any
id
required
Id
string
last_run_at
Any of:
string format: date-time
name
required
Name
string
source_config
Any of:
object
key
additional properties
any
source_type
Source Type
string
default: empty
status
required
Status
string
sync_to_leads
Sync To Leads
boolean
default: true
total_rows
required
Total Rows
integer
updated_at
Any of:
string format: date-time
Example
{
"source_type": "empty",
"sync_to_leads": true
}

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"
}
]
}