Skip to content

Create Agent Work Item

POST
/agent/work-items

Start a unit of autonomous work. THE AGENT BEGINS PLANNING IMMEDIATELY.

agent_id selects the planner template. A known id gets its own template; anything else falls back to full, which is why it is an open string rather than an enum - an enum would reject the ad-hoc case the planner explicitly supports.

visibility defaults to private: work started through a key is not visible org-wide unless asked for.

user_email defaults to the identity the key was minted under, so the item belongs to a real person rather than to nobody.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Start a unit of autonomous work.

object
agent_id
required

Which agent owns it. A known id the planner has a template for - onboarding, dialer_setup, sequencer_setup, campaign_run, voice_setup, marketplace, dev_setup - or a free-form value, for which the planner falls back to its full template. Left as an open string for that reason: an enum here would reject the ad-hoc case the planner explicitly supports.

string
entry_point
Any of:
string
goal
required

What the agent should achieve.

string
>= 1 characters
page
Any of:
string
<= 500 characters
platform
Any of:
string
Allowed values: whatsapp slack roam imessage
seed_message
Any of:
string
session_title
Any of:
string
skill_mode
Any of:
string
source
Any of:
string
Allowed values: canvas bridge
subject_account_id
Any of:
string
subject_campaign_id
Any of:
string
title
required
string
>= 1 characters <= 500 characters
user_email
Any of:
string
visibility

private (default) or shared org-wide. The default is the safe one: work started through an API key is not visible to the whole org unless asked for.

string
default: private
Allowed values: shared private

Responses

201

Successful Response

object
data
required

One unit of autonomous work.

object
agent_id
Any of:
string
created_at
Any of:
string format: date-time
goal
Any of:
string
id
Any of:
string
session_id
Any of:
string
status
Any of:
string
title
Any of:
string
updated_at
Any of:
string format: date-time
visibility
Any of:
string
work_item_id
Any of:
string
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string