POST /v1/sessions/{session_id}/mcp-elicitation-consent
POST
/v1/sessions/{session_id}/mcp-elicitation-consent
const url = 'https://app.everruns.com/api/v1/sessions/example/mcp-elicitation-consent';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"action":"accept","tool_call_id":"url_elicitation_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/mcp-elicitation-consent \ --header 'Content-Type: application/json' \ --data '{ "action": "accept", "tool_call_id": "url_elicitation_01933b5a00007000800000000000001" }'Records a user’s decision about a URL an MCP server asked them to open, and resumes the paused turn.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Session ID (prefixed, e.g., session_…)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Request to answer a pending URL mode elicitation.
object
action
required
The user’s decision.
string
tool_call_id
required
The confirm_url_elicitation tool call being answered.
string
Example
url_elicitation_01933b5a00007000800000000000001Responses
Section titled “Responses”Decision recorded and workflow resumed
Media typeapplication/json
Result of answering a pending URL mode elicitation.
object
host
required
Domain the consent was recorded against, echoed so a client can confirm it showed the same one.
string
status
required
Session status after the decision.
string
Examplegenerated
{ "host": "example", "status": "example"}Invalid session ID or request
Session or pending elicitation not found
Session is not waiting for tool results
Internal server error