POST /api/v1/cloud/sessions
Creates a Session. The new Session starts in the idle state; send events to begin work.
Headers
Request body
Legacy request fields
environment, delta_flush_interval_ms, vaults, and memory_store_ids are not supported. Use resources[] with type: "memory_store" to attach Memory Stores.
Environment variables validation
Names must match[A-Za-z_][A-Za-z0-9_]*. Reserved names SERVER_ENDPOINT, USER_ID, WORK_DIR, and any name with the CAW_ or QODER_ prefix are rejected. Each value cannot exceed 8 KiB; the entire field cannot exceed 64 entries or 64 KiB combined. Duplicate keys, malformed entries, or use on self-hosted environments return 400 invalid_request_error.
Resource parameters
Self-hosted environments currently do not support Session resources.
Example request
Example response
HTTP 200 OK Returns a Session object.Errors
HTTP 400 Bad Request
agent value without the agent_ prefix (or an environment_id without the env_ prefix) is also resolved to a 404 not_found_error rather than a 400.
See Errors for the full error envelope.
Related
Start a session
Run an agent against an environment as a stateful conversation.