---
title: "Convert a message to a document"
method: GET
path: "/messages/{message_id}/convert"
tags: ["Message"]
---

# Convert a message to a document

`GET /messages/{message_id}/convert`

Convert a message to various document formats.

## Path parameters

- `message_id` integer, required — ID of the message to convert.

## Query parameters

- `format` 'pdf' | 'docx' | 'html' | 'rtf' | 'odt' | 'xlsx' | 'csv', required
- `cookie_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Missing or invalid authentication.
- `403` — No access to the message's chat.
- `404` — Message or its chat does not exist.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/revisions/b53e89b98c2b/schema)
