Post a finished automation run's record

POST /api/v1/code/runtime/runs on the Caveman Cloud control plane. Requires a Caveman Code runtime token (Authorization: Bearer ccrt_...), minted by POST /code/runtimes/{runtimeId}/token. Not exposed to autonomous agents: Not RBAC-guarded — authenticated by a Caveman Code runtime token, and only for an org workload's session on that runtime's computer: an automation run's record when it ends, an Agents API or automation session's spans (ADR 0134). Agents authenticate through a scoped control-plane session and never touch these directly.

post/code/runtime/runs

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/code/runtime/runs
  • Auth
    HTTP bearer

Request body

session_idstring uuid required
automation_idstring uuid required
recordobject required

The run record as journalled (SEMANTICS 12).

Response

Accepted

run_idstring uuid required
endedboolean required
replayedboolean required
attemptsinteger required
cost_usdnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.