Quick choice
- Choose
revisewhen the website is still the right target and you need to change the build instructions, such as missing fields, extra fields, the wrong focus, or a tighter schema. - Choose
rebuildwhen the website changed, runtime health recommends it, or endpoint calls now fail broadly. - Choose
respondwhen the API is paused inneeds_input.
What each operation does
GET /v1/apis/{api_id}- Returns the current API record.
- Use it to inspect
status,endpoints, endpointruntime_policyandruntime_verification,failure,failure_reason_code, anduser_input_prompt.
GET /v1/apis/{api_id}/health- Returns binding-level runtime health when an API is published, or build-stage health when it has not published a binding yet.
- Use it to inspect
status,task_status,detail,recommended_action,failure, counters, timestamps, and per-endpoint health.
POST /v1/apis/{api_id}/respond- Sends a response only when the API status is
needs_input. - Optional body flags:
wait_for_completion,timeout_ms.
- Sends a response only when the API status is
POST /v1/apis/{api_id}/revise- Queues a revision with new
instructions. - Use it when the target is still right but the build intent needs to change.
- Queues a revision with new
POST /v1/apis/{api_id}/rebuild- Queues a fresh rebuild from the same binding.
- Use it when the underlying site or request surface likely changed.
id is the durable identity. Endpoint names and schemas can change after a successful revise or rebuild, so re-inspect the API before calling an updated endpoint.
Decision rules
Status handling
If runtime calls are failing on a previously healthy endpoint, the runtime
error_code catalog in Errors helps you decide between retry, rebuild, and revise.
Health semantics
GET /v1/apis/{api_id}/health returns one of three health shapes.
For a published API, it returns binding-level runtime health:
status: "build_failed", task_status: "failed", failure_reason_code, a detail string with the build failure context, a top-level recommended_action copied from the structured failure, and the same structured failure object exposed by GET /v1/apis/{api_id}.
Re-validate after any update
Call the same endpoint name again afterrespond, revise, or rebuild.
api.statusapi.failure- endpoint list
- one or two critical runtime calls