This page uses the public, API-key-authenticated surface at
https://api.vyomflow.co.in/api/public/v1 — see Authentication.Kinds
There are two kinds of waitpoint, each with its own request/response shape:CREDIT_APPROVAL— the agent wants to run a tool that will consume more credits than the auto-approval threshold. Request payload:{ toolName, estimatedCredits, threshold }. You respond with{ approved: true | false }.CLARIFICATION— the agent needs additional information to proceed. Request payload:{ question, options? }. You respond with{ answer: "<text>" }.
When waitpoints appear
The event stream (Streaming) emits awaitpoint.created event carrying the waitpoint’s id, kind, and request payload. While the waitpoint is open, the run stays in the waiting status. The run resumes only after you respond to the waitpoint or cancel the run. A waitpoint.resolved event follows once it’s answered.
Responding to a waitpoint
Send your response with a single POST call (requires thewaitpoints:respond scope). The run resumes automatically once the API receives it. Responding is idempotent — a repeat call on an already-resolved waitpoint still returns 200 with its current state, not an error.
Endpoint
Examples
A waitpoint is owned by the same user as its parent run. If you try to respond with a different user’s key, the API returns
404 Not Found instead of 403 Forbidden.