attachments

Attachment Source Text

Return the markdown a GENERATED document was rendered from (TOS-4036).

generate_pdf renders from model-authored markdown, and TOS-2470 already persists that markdown on the attachment so the RAG indexer never has to re-parse the PDF to recover words it started with. The viewer reuses it for a Source tab and for in-document text search.

Deliberately restricted to generation_type == "document". A user-uploaded PDF also carries extracted_text, but that is parser output, not an authored source: labelling it "Source" would present a lossy reconstruction as the thing the document was made from.

get/api/attachments/{attachment_id}/source-text

Request

  • Base URL: https://app.thinqos.com (the document declares no server; this is the origin it was published from)
  • URL: https://app.thinqos.com/api/attachments/{attachment_id}/source-text
  • Auth: none declared

Path parameters

attachment_idstring uuid required

Headers

x-impersonate-identity-idstring nullable

Response

Successful Response

source_textstring nullable required
truncatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.