POST /v1/sessions/{session_id}/question-answers
const url = 'https://app.everruns.com/api/v1/sessions/example/question-answers';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"answers":[{"id":"target","other_text":null,"selected":["Staging"]}],"status":"answered","tool_call_id":"toolu_01933b5a00007000800000000000001"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.everruns.com/api/v1/sessions/example/question-answers \ --header 'Content-Type: application/json' \ --data '{ "answers": [ { "id": "target", "other_text": null, "selected": [ "Staging" ] } ], "status": "answered", "tool_call_id": "toolu_01933b5a00007000800000000000001" }'Answers the question set an agent raised with ask_user, and resumes the
paused turn.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Session ID (prefixed, e.g., session_…)
Request Bodyrequired
Section titled “Request Bodyrequired”Request to answer a pending ask_user question set.
object
One answer per asked question, keyed by question id.
One submitted answer.
object
Question id, as carried in the tool.call_requested payload.
Free text, accepted only when the question allows it.
Chosen option labels. Must be labels that were actually offered.
Example
[ { "id": "target", "other_text": null, "selected": [ "Staging" ] }]What the person did. answered carries answers; declined is a finished
decision the model must not re-ask.
The ask_user tool call being answered. Optional: when omitted the one
pending question set on the session is used.
Example
toolu_01933b5a00007000800000000000001Responses
Section titled “Responses”Answer recorded and workflow resumed
Result of answering a pending question set.
object
Who the server attributed the outcome to.
Session status after the answer.
Outcome recorded against the call.
Example
{ "answered_by": "user", "session_status": "active", "status": "answered"}Invalid session ID, or answers that do not match what was asked
Session or pending question set not found
Session is not waiting for tool results, or the question set was already answered
Internal server error