---
title: "Get Session Chat History"
method: POST
path: "/api/chat/{session_id}/history.pdf"
tags: ["Chat"]
---

# Get Session Chat History

`POST /api/chat/{session_id}/history.pdf`

Export Conversation History for a Session to PDF.

## Path parameters

- `session_id` string, required

## Request body

- ChatHistoryConversationInputSchema — Schema for conversation history input.
  - `bot_id` string, uuid, required — Unique identifier for the associated bot.
  - `user_id` string, uuid, nullable — Optional user identifier associated with the conversation.
  - `order` string, nullable — Optional order for sorting the conversation.
  - `date_from` string, date-time, nullable — Optional start date for filtering the conversation.
  - `date_to` string, date-time, nullable — Optional end date for filtering the conversation.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
