Create Document
Path parameters
domain
Request
This endpoint expects an object.
document
The content of the document that will be returned to Ask Fern during document retrieval.
chunk
The textual content that should be vectorized when indexing the document. If not provided, the full document will be vectorized.
title
The title of the document. This will be used with the url
when Ask Fern cites this document.
url
The url of the document. This will be used as the source of the document when Ask Fern cites it.
version
The version of the document. This will be compared against when running Ask Fern with version filters. If null, the document will be retrievable by all versions.
product
The product of the document. This will be used to filter documents when running Ask Fern with product filters. If null, the document will be retrievable by all products.
keywords
The keywords of the document. Adding keywords can improve document matching.
authed
Whether the document is authed. If true, the document will be retrievable by all users.
Response
Successful Response
document_id
The unique identifier of the created document