sources

Get source details

Gets detailed information about a specific source. This endpoint currently supports local_file source IDs. Crawl source IDs returned by /search or GET /contents/{id} are separate IDs and are not accepted here; use GET /sources/{source_id}/raw to download the stored crawl file content.

Required scope: `knowledge:read`

get/sources/{source_id}

Path parameters

source_idstring required

Source ID

Response

Successful retrieval of source

idstring required

Source ID (file ID)

source_group_idstring required

Parent source group ID

namestring required

Name of the source (file name)

file_type'html' | 'pdf' | 'ppt' | 'pptx' | 'pptm' | 'doc' | 'docx' | 'docm' | 'xls' | 'xlsx' | 'xlsm' | 'md' | 'txt' | 'jsonl' | 'png' | 'jpg' | 'webp' | 'heic' | 'heif' | 'wav' | 'mp3' | 'aiff' | 'aac' | 'm4a' | 'ogg' | 'flac' | 'mp4' | 'mpg' | 'mov' | 'avi' | 'flv' | 'webm' | 'wmv' | '3gp' | 'notion_page'

The type of the source file

file_sizeinteger

File size in bytes

Changes

Changed in 3 of the 71 revisions of this API.211

    • added the new datetime enum value to the /// response property for the response status

      response-property-enum-value-added

    • the response property /// became nullable for the status

      response-property-became-nullable

    • the response property /// became optional for the status

      response-property-became-optional

    • endpoint added

      endpoint-added

Of the 71 revisions, 18 have no diff computed.