> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trysiren.io/llms.txt
> Use this file to discover all available pages before exploring further.

# End Chat Session

> End an active chat session and terminate the conversation

## Header

<ParamField header="Authorization" type="string" required>
  Bearer token for API authentication. Format: `Bearer {{apiToken}}`
</ParamField>

<RequestExample>
  ```json Request Example theme={null}
  {
    "chatNodeId": "chat_node_id_1",
    "workflowExecutionId": "123e4567-e89b-12d3-a456-426614174000"
  }
  ```
</RequestExample>

## Request Body

```json theme={null}
{
  "chatNodeId": "<chat_node_id>",
  "workflowExecutionId": "<workflow_execution_id>"
}
```

## Body Parameters

<ParamField body="chatNodeId" type="string" required>
  The unique identifier of the chat node to end
</ParamField>

<ParamField body="workflowExecutionId" type="string" required>
  The UUID of the workflow execution
</ParamField>

## Response

Success Response (200 OK)

* The API returns an empty response body with HTTP status 200 when the chat session has successfully ended.

## Status Codes

* `200` - OK
* `400` - BAD REQUEST
* `401` - UNAUTHORISED
* `404` - NOT FOUND
