Context Source File Content
GET/resource/context-manager/sources/:id/content
Retrieve the text of a file uploaded as a Context Manager source: the documents Sona reads to fill a brand's context files.
txt,mdandcsvfiles return their text as uploaded.docxfiles return the document's body text, one paragraph per line (headers, footers, footnotes and comments are not included).pdffiles, web address sources and onboarding sources returnavailable: falsewith the reason inmessage, instead of an error.
content is cut to the first 100,000 characters. When it is cut, truncated is true and length is the full text's length.
Only sources of your organization are returned.
Calling this endpoint does not consume credits.
Request
Responses
- 200
- 404
Not found