Export an AI chat conversation to PDF

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.usehearsay.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "integrations MCP server": {
    "url": "https://docs.usehearsay.com/mcp"
  }
}

Close
POST /ai-chat/{caseId}/profile/{providerId}/conversation/{conversationId}/export-pdf

Renders the whole conversation to a PDF while the request waits, stores it, and returns the stored file record; export started, finished or failed events are recorded on the case. Returns 404 if the conversation is not linked to the case.

Path parameters

  • caseId string Required
  • providerId string Required
  • conversationId string Required

Responses

  • 201 application/json
    Hide response attributes Show response attributes object
    • data object Required
      Hide data attributes Show data attributes object
      • name string Required
      • convertedName string | null Required
      • transferState number | null Required

        Values are 0, 1, 5, 6, or 7.

      • totalBytes number | null Required
    • statusCode number Required
    • timestamp string(date-time) Required
POST /ai-chat/{caseId}/profile/{providerId}/conversation/{conversationId}/export-pdf
curl \
 --request POST 'http://api.example.com/ai-chat/{caseId}/profile/{providerId}/conversation/{conversationId}/export-pdf' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (201)
{
  "data": {
    "name": "IMG_0001.HEIC",
    "convertedName": "IMG_0001_display.png",
    "transferState": 5,
    "totalBytes": 2483120
  },
  "statusCode": 201,
  "timestamp": "2026-01-15T10:15:00.000Z"
}