Response returned when downloading a context document's content.
The data field contains the raw file bytes as an ArrayBuffer. Metadata fields are extracted from the HTTP response headers so consumers do not need to parse them manually.
data
ArrayBuffer
const content = await user.downloadMeetingContextDocumentContent( 'meeting-id', 'document-id',);await writeFile('output.md', Buffer.from(content.data));console.log(`Downloaded ${content.filename} (${content.size} bytes)`); Copy
const content = await user.downloadMeetingContextDocumentContent( 'meeting-id', 'document-id',);await writeFile('output.md', Buffer.from(content.data));console.log(`Downloaded ${content.filename} (${content.size} bytes)`);
Optional
MIME type from the Content-Type header.
Content-Type
`"text/markdown"`, `"application/json"` Copy
`"text/markdown"`, `"application/json"`
Raw file bytes
Filename from the Content-Disposition header, if the server provided one.
Content-Disposition
Content length in bytes, when reported by the server
Response returned when downloading a context document's content.
The
datafield contains the raw file bytes as anArrayBuffer. Metadata fields are extracted from the HTTP response headers so consumers do not need to parse them manually.Example