v2
latestOpenAPI 3.1.02026-08-05267431678.1 KBauto-agent
Complete Run
Sandbox completion callback — called by the Modal agent when it finishes.
Validates the one-time callback token, writes results to the DB, and clears the token. No user auth required — the token IS the auth.
Args: run_id: Run UUID from the path. body: JSON payload with deliverables_json, final_report, curation_report, tool_calls_made, message_history, error_message. callback_token: One-time token issued at run creation (X-Callback-Token header).
Raises: HTTPException 401: Token invalid or already used. HTTPException 404: Run not found. HTTPException 400: Validation error.
post/auto-agent/run/{run_id}/complete
Path parameters
run_idstring required
Headers
X-Callback-Tokenstring required
Request body
object required
Response
Successful Response