/workspace files across turns.
Turns
Auser.message starts a turn. Each turn ends with a session.status_idle event whose stop_reason explains why: the agent finished, you interrupted it, or it is paused waiting for tool answers (requires_action). See Tools and Session events.
Send user.interrupt to stop a running turn. Every event carries a monotonic seq you can use to resume a stream.
Change harness or model
Select the next turn’s harness and model on an idle Session. A Session that is waiting for approval or a custom tool result returns HTTP 409. The Session keeps its pinned Agent version, Environment, mounts, and published events. The newly selected runtime starts with the most recent published user and assistant exchanges.Filesystem
The agent’s file tools can read every mount path.
bash sees only /workspace and /mnt/session/outputs.
List Sessions
Sessions are listed by creation time, newest first by default. Passnext_page or prev_page from a response as the next request’s page value. A cursor keeps its original order. You can change the page size and filters, and a creation-time filter must still include the cursor’s position.
Filter by Agent ID, Agent version, Automation, mounted Memory Store, status, or creation time. Supply an Agent ID when filtering by Agent version. A request with only agent_version returns a 400 error. Creation-time filters (created_at[gt], created_at[gte], created_at[lt], created_at[lte]) accept ISO 8601 timestamps with a time zone and up to millisecond precision. Follow next_page when present, even if the status filter leaves the current page empty.
Resources
Attach resources when you create the Session; they cannot be added later (see Create a session and Limits for counts and options).SKILL.md at its root (plus any files it references), mounted read-only at /mnt/skills/<name>. For GitHub repositories, see Work on a GitHub repository.
Outputs
When a turn ends withend_turn, budget_reached, or refusal, Checkfu saves the files in /mnt/session/outputs as Files:
Usage
The Session’susage totals reflect token counts reported by its harness. GET /v1/sessions/{session_id}/usage summarizes the model requests Checkfu recorded, and /v1/sessions/{session_id}/usage/requests lists the individual receipts. Built-in harnesses and custom harnesses using Checkfu-managed models write these receipts. A custom harness can also report token usage for its own provider calls. Those calls have no Checkfu request receipt.
known_cost_micro_usd is null until a settled request has a known cost.