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), and the input type must match the request's type: human_feedback answers a human_feedback request, approval_request.confirmed and approval_request.rejected answer an approval_request. Any other pairing returns 400 and leaves the request pending.
Authorization
accessKey Organization or project Access Key created in the Dynamiq console. Valid only on synapse-served hosts: deployed app hostnames, knowledge base hostnames, the AI Gateway (router.*), and the traces collector (collector.*). Prefix dynamiq_acc_. NOT accepted by the management API (api.*). 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": "2b9e4f6a-1c3d-4e5f-9a7b-8c6d5e4f3a21", "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.