Skip to content
Skip to article
View as Markdown

Recordings API

A recording groups the generation requests that start on one router during a capture window. Requests from every client and session using that router can be included. Use these paths directly under the router root. Set the URL and router API key.

A voice WebSocket can span several capture windows. A window includes each turn that finishes while the window is open, on OpenAI’s response.done or Gemini’s turnComplete. These Realtime rows contain usage metadata and cannot be replayed. OpenAI Realtime · Gemini Live.

Start a capture

POST /r/{router_slug}/recordings/start

A router has one active recording. Starting another recording stops the current one. If several scripts share the router, check the active window before starting a capture. Give the recording an optional name of up to 255 characters, or send {} for an unnamed recording.

curl "$DODO_ROUTER_URL/recordings/start" \
  -H "Authorization: Bearer $DODO_ROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Checkout smoke test"}'

A successful start returns HTTP 201 and a recording object. An invalid name returns 422, with field errors in error.details.

{
  "id": "da413922-23ee-4595-a031-d4011ea45385",
  "name": "Checkout smoke test",
  "status": "recording",
  "started_at": "2026-10-01T09:00:00.000000Z",
  "stopped_at": null
}

Inspect the active window

GET /r/{router_slug}/recordings/active

curl -i "$DODO_ROUTER_URL/recordings/active" \
  -H "Authorization: Bearer $DODO_ROUTER_API_KEY"

HTTP 200 returns the active recording object. HTTP 404 with error.type equal to not_found means there is no active window.

Stop a capture

POST /r/{router_slug}/recordings/active/stop

curl -X POST "$DODO_ROUTER_URL/recordings/active/stop" \
  -H "Authorization: Bearer $DODO_ROUTER_API_KEY"

HTTP 200 returns the stopped recording with status: "stopped" and a populated stopped_at. The operation applies to whichever recording is active when the call arrives. If there is none, it returns 404.

Open Recordings for that router to inspect captured requests and compare candidate models with Benchmark this recording. An OAuth-connected agent can use the returned recording ID with get_recording or create_eval. Agent access.