---
title: "End Public Chat Session"
method: POST
path: "/api/v1/public/embed/chat/{session_token}/end"
tags: ["main"]
---

# End Public Chat Session

`POST /api/v1/public/embed/chat/{session_token}/end`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/public/embed/chat/{session_token}/end`
- Auth: none declared

## Path parameters

- `session_token` string, required

## Request body

- PublicEmbedChatEndRequest
  - `expected_revision` integer, nullable

## Response `200`

Successful Response

- PublicEmbedChatSessionResponse
  - `revision` integer, required
  - `state` string, required
  - `is_completed` boolean, required
  - `turns` PublicEmbedChatTurn[], required
    - `id` string, required
    - `status` string, required
    - `user_message` PublicEmbedChatMessage
      - `text` string, required
      - `created_at` string, nullable
    - `assistant_message` PublicEmbedChatMessage
      - `text` string, required
      - `created_at` string, nullable
    - `assistant_messages` PublicEmbedChatMessage[], nullable
      - `text` string, required
      - `created_at` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-03** `faa00cf76fcb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/public/embed/chat/:session_token/end/post.md)

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) - [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dograh/apis/dograh-api/revisions/faa00cf76fcb?raw)
