Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Create Agent Cycle Api V1 Workstreams Cycles Agent Post

post/api/v1/workstreams/cycles/agent

Start agentic cycle

Start a new agentic workstream cycle. Instead of a rigid step-based WDL, the agent receives a goal, tools, and context, then works autonomously toward producing the required deliverables. **Authentication Required:** JWT Bearer token

Request bodyapplication/json

FieldTypeDescription
goalrequiredstringWhat the agent should accomplish
domainrequiredstringDomain knowledge key (e.g. 'ita_2007_eis')
client_idstring (uuid) | nullClient UUID
contextobjectClient context data
show nested
Empty object.
toolsstring[]Tools the agent may use (empty = all available)
deliverablesobject[]Required deliverables [{name, type, description}]
item shape
Empty object.
max_turnsinteger—
max_cost_usdnumber—
max_duration_minutesinteger—
source_tracingbooleanEnable source tracing guardrail

Responses

201Agentic cycle started
FieldTypeDescription
cycle_idrequiredstring—
workflow_idrequiredstring—
statusrequiredstring—
401Unauthorized
422Validation Error
FieldTypeDescription
detailValidationError[]—
item shape
504Temporal timeout
curl https://api.dev.arch.ie/api/v1/workstreams/cycles/agent \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "goal": "string",
       "domain": "string",
       "client_id": null,
       "context": {},
       "tools": [
         "string"
       ],
       "deliverables": [
         {}
       ],
       "max_turns": 0,
       "max_cost_usd": 0,
       "max_duration_minutes": 0,
       "source_tracing": false
     }'
API Reference · Archie for developers