Proposed API design
Illustrative request and response shapes. These endpoints are not operational.
No application API is available
The repository has no agent API routes. The paths and examples below are design proposals only. They must not be used as a working SDK, and no curl command is presented as an executable product flow.
Runs and artifacts
POST /api/v1/runs would create a scoped request using previously authorized source identifiers. GET /api/v1/runs/{run_id} would return state, step references, and review requirements. GET /api/v1/runs/{run_id}/artifacts would list authorized output artifacts. Every route would require authentication and resource-level authorization.
Approval decisions
POST /api/v1/runs/{run_id}/decisions would accept an approve or reject decision for a specific action_id and revision. A stale revision should return a conflict rather than accepting consent for a changed action. An idempotency key would make repeating the same decision safe.
Errors and limits
Define explicit error codes for invalid_input, unauthorized, forbidden, stale_revision, rate_limited, and tool_outcome_unknown. Validate uploaded source references, constrain request sizes, and expose retry hints only for retryable failures. Exact quotas and error schemas remain to be implemented.
{
"request": {
"goal": "Prepare a weekly project report",
"source_ids": [
"source_notes_v1",
"source_meeting_v1"
],
"output_format": "markdown",
"allow_external_actions": false
},
"illustrative_response": {
"run_id": "example_run",
"state": "pending",
"operational": false
}
}