Delegate a task to the Runtype operator agent
Start a task the operator agent works through in your organization: it reads and changes agents, flows, records, tools, evals and surfaces with the same authority as the caller. With waitSeconds the response waits up to that long for the task to finish or to stop on a question (input_required) before answering; otherwise it returns the queued task at once. An identical delegation from the same caller that is still running is returned again (200, deduplicated: true) instead of starting a second one. API keys need DELEGATE_TASKS:WRITE.
Authentication
AuthorizationBearer
API key or Clerk session token
Request
This endpoint expects an object.
instruction
allowDestructive
clientName
clientVersion
context
maxToolCalls
waitSeconds
Response
The still-running task this request duplicated
apiKeyId
clientName
clientVersion
completedAt
createdAt
error
id
instruction
lastEventSeq
modelRoundCount
organizationId
question
result
startedAt
status
summary
toolCallCount
totalCost
touchedEntities
updatedAt
userId
context
deduplicated
True when an identical delegation from the same caller was still running, so that task was returned instead of starting another.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
503
Service Unavailable Error