Skip to main content

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, md and csv files return their text as uploaded.
  • docx files return the document's body text, one paragraph per line (headers, footers, footnotes and comments are not included).
  • pdf files, web address sources and onboarding sources return available: false with the reason in message, 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​