Create an agent session
Creates a session to run agent turns in (see POST /agent/runs). Optionally bound to a workflow, project, space or a computer the caller can write; a computer is attached and selected atomically before the session becomes visible. Optional requestId makes creation retryable per owner and vault: requestId becomes the session id, so the same request returns the same session without changing a later selection; an ID owned by someone else returns 409. mode defaults to agent.
/api/agent/sessionsvaultIdstringrequiredrequestIdobjectcomputerIdobjectworkflowIdobjectprojectIdobjectspaceIdstringtitlestringpurposeenumOne of: chat, workflow_node
metadataobjectlinkobjectparentSessionIdstringrequiredkindenumOne of: start, fork, handoff
briefstringproposalToolCallIdstringpeerDepthintegermodeenumrequiredOne of: agent, plan
Request
curl -X POST https://trickest.io/api/agent/sessions \
-H "Authorization: Token $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
sessionobjectrequiredidstringrequiredvault_idstringrequireduser_idstringrequiredtitlestringstatusenumrequiredOne of: ACTIVE, ARCHIVED, DELETED
modelstringcreated_atstringrequiredupdated_atstringrequiredcodestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.