Sessions
A Session (also referred to as a Thread) represents a conversational context with the AI agent. It holds the configuration for the computer environment and the agent’s instructions.Create a session
Creates a new session, storing your instructions and deployment configuration.POST /api/sessions
Body
Get a session
Retrieves the details of an existing session.GET /api/sessions/{threadId}
Response (200)
Runs
A Run is the actual execution of the AI agent responding to a message within a Session. Starting a run is what actually provisions the computer and begins the automation.Start a run
Triggers the AI agent to execute a task.POST /api/sessions/{threadId}/runs
Body
Get a run
Checks the status of an active or completed run.GET /api/sessions/{threadId}/runs/{runId}
Response (200)