Send input to a run
Answers a pending human-feedback or approval request of a run. Only runs in `started` or `paused` status accept input; a paused run is resumed from its latest checkpoint first. The `request_id` must match the `id` of a pending request from the run's `input_requests` (or the corresponding `agent.human_feedback.requested` / `approval_request.created` event).
Authorization
accessKey Organization or project Access Key created in the Dynamiq console. Used for deployed-app (Runs API), AI Gateway, traces collector, and management API requests. Send as Authorization: Bearer <access-key>.
In: header
Path Parameters
Run UUID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body for POST /v1/runs/{run_id}/input.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/input" \ -H "Content-Type: application/json" \ -d '{ "type": "human_feedback", "data": { "request_id": "7a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9", "feedback": "Prefer a friendly tone and mention the order number." } }'{
"message": "ok"
}{
"error": {
"code": "bad_request",
"message": "Bad Request",
"details": {
"input": "cannot be blank"
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized"
}
}{
"error": {
"code": "not_found",
"message": "Not Found"
}
}Cancel a run
Cancels a run that has not reached a terminal state. Cancelling an already completed, failed, or canceled run is a no-op and still returns 200.
List run events
Returns the persisted events of a run in sequence order. Useful for replaying a finished run; for live runs use the stream endpoint.