Export a message canvas document in a given format
GET
/ai/chats/{chat}/messages/{message}/export
const url = 'http://localhost:8000/api/v1/ai/chats/1/messages/1/export?format=md';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:8000/api/v1/ai/chats/1/messages/1/export?format=md' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” chat
required
integer
message
required
integer
Query Parameters
Section titled “Query Parameters ” format
string
Responses
Section titled “ Responses ”The exported document as a file download
Not found
Unsupported format