# POST /v1/sessions/{session_id}/mcp-elicitation-consent

Source: <https://everruns.com/docs/api/operations/submit_elicitation_consent/>

POST

/v1/sessions/{session\_id}/mcp-elicitation-consent

Select code samplecURL (shell:curl)

```js
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);
}
```

```sh
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" }'
```

* Production APIapp.everruns.com/api/v1/sessions/{session\_id}/mcp-elicitation-consent

Records a user’s decision about a URL an MCP server asked them to open, and resumes the paused turn.

## Parameters

### Path Parameters

**session\_id**

required

string

Session ID (prefixed, e.g., session\_…)

## Request Bodyrequired

Media typeapplication/json

Request to answer a pending URL mode elicitation.

object

**action**

required

The user’s decision.

string

Allowed values: accept decline

**tool\_call\_id**

required

The `confirm_url_elicitation` tool call being answered.

string

##### Example

```plaintext
url_elicitation_01933b5a00007000800000000000001
```

## Responses

### 200

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

```json
{
  "host": "example",
  "status": "example"
}
```

### 400

Invalid session ID or request

### 403

Caller may not manage this session

### 404

Session or pending elicitation not found

### 409

Session is not waiting for tool results

### 500

Internal server error