Sources

Get Source Content

Changed on
get/sources/{source_id}/content

Request

Path parameters

source_idstring required

Query parameters

type'repository' | 'documentation' | 'research_paper' | 'huggingface_dataset' | 'local_folder' | 'slack' | 'google_drive' nullable

Source type hint

pathstring nullable

Path or virtual path

urlstring nullable

Direct URL (documentation)

branchstring nullable

Repository branch

pageinteger nullable

PDF page number

tree_node_idstring nullable

PDF tree node identifier

line_startinteger nullable

Starting line number

line_endinteger nullable

Ending line number

max_lengthinteger nullable

Maximum content length

Response

Successful Response

successboolean required

Whether retrieval succeeded

contentstring

Source content

metadataobject

Content metadata

errorstring nullable

Error message if failed

Changes

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the new optional query request parameter line_end

    • info

      added the new optional query request parameter line_start

    • info

      added the new optional query request parameter max_length

    • info

      added the new optional query request parameter page

    • info

      added the new optional query request parameter tree_node_id

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the enum value google_drive to the property anyOf[subschema #1]/ of the query request parameter type