content

Get content

Get through indexed content.

Required scope: `knowledge:read`

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[]

Changes

Changed in 8 of the 71 revisions of this API.13013

    • added the optional property to the response with the status

      response-optional-property-added

    • added the new optional query request parameter authz_policy

      new-optional-request-parameter

    • added the new optional query request parameter principal_id

      new-optional-request-parameter

    • for the path request parameter id, the format changed from no format to uuid

      request-parameter-type-changed

    • added the non-success response with the status

      response-non-success-status-added

    • added the new aac enum value to the response property for the response status

      response-property-enum-value-added

    • added the new jsonl enum value to the response property for the response status

      response-property-enum-value-added

  • e540a2ea355759See the full diff
    • added the new heic enum value to the response property for the response status

      response-property-enum-value-added

    • added the new heif enum value to the response property for the response status

      response-property-enum-value-added

    • added the new jpg enum value to the response property for the response status

      response-property-enum-value-added

    • added the new png enum value to the response property for the response status

      response-property-enum-value-added

    • added the new webp enum value to the response property for the response status

      response-property-enum-value-added

    • removed the aac enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the aif enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the f4p enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the f4v enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the m4p enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the m4v enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the mpeg enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the oga enum value from the response property for the response status

      response-property-enum-value-removed

    • removed the qt enum value from the response property for the response status

      response-property-enum-value-removed

    • added the new 3gp enum value to the response property for the response status

      response-property-enum-value-added

    • added the new avi enum value to the response property for the response status

      response-property-enum-value-added

    • added the new f4p enum value to the response property for the response status

      response-property-enum-value-added

    • added the new f4v enum value to the response property for the response status

      response-property-enum-value-added

    • added the new flv enum value to the response property for the response status

      response-property-enum-value-added

    • added the new m4p enum value to the response property for the response status

      response-property-enum-value-added

    • added the new m4v enum value to the response property for the response status

      response-property-enum-value-added

    • added the new mov enum value to the response property for the response status

      response-property-enum-value-added

    • added the new mp4 enum value to the response property for the response status

      response-property-enum-value-added

    • added the new mpeg enum value to the response property for the response status

      response-property-enum-value-added

    • added the new mpg enum value to the response property for the response status

      response-property-enum-value-added

    • added the new qt enum value to the response property for the response status

      response-property-enum-value-added

    • added the new webm enum value to the response property for the response status

      response-property-enum-value-added

    • added the new wmv enum value to the response property for the response status

      response-property-enum-value-added

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new aac enum value to the response property for the response status

      response-property-enum-value-added

    • added the new aif enum value to the response property for the response status

      response-property-enum-value-added

    • added the new aiff enum value to the response property for the response status

      response-property-enum-value-added

    • added the new flac enum value to the response property for the response status

      response-property-enum-value-added

    • added the new m4a enum value to the response property for the response status

      response-property-enum-value-added

    • added the new mp3 enum value to the response property for the response status

      response-property-enum-value-added

    • added the new oga enum value to the response property for the response status

      response-property-enum-value-added

    • added the new ogg enum value to the response property for the response status

      response-property-enum-value-added

    • added the new wav enum value to the response property for the response status

      response-property-enum-value-added

Of the 71 revisions, 18 have no diff computed.