v52

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-0393116227.2 KB
content

Get content

Get through indexed content.

Required roles: All, App

get/contents/{id}

Path parameters

idstring uuid required

Query parameters

authz_policystring

(reserved for future use) Name of the registered authz policy to evaluate when fetching the content. Defaults to the reserved "default" policy when omitted. Ignored when authz is disabled.

principal_idstring

Identifier of the end-user (principal) on whose behalf the content is fetched. Used to look up authz subject attributes. Empty subject when omitted. Ignored when authz disabled.

Response

Successful get content

idstring required

Content ID

textstring required

Content chunk from the source

urlstring required

Source URL of the content

titlestring required

Title of the content or document

timestampinteger required

Unix timestamp when the content was indexed

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' required

The type of the source file

page_numberinteger required

Page number for paginated documents like PDFs. Set to 0 for sources without page numbers

source_type'crawl' | 'local_file' | 'google_drive' | 'github' | 'notion' required

The type of the source

source_idstring

Optional source ID for the original source. For crawl content, use this value with GET /sources/{source_id}/raw to download the stored crawl file content. For local_file content, use GET /sources/{source_id} for source details.

keywordsstring[]