Batch Create Document

以 Markdown 格式查看

身份验证

AuthorizationBearer

Bearer 身份验证,格式为 Bearer <token>,其中 token 是您的身份验证令牌。

路径参数

domainstring必需

请求

This endpoint expects a list of objects.
documentstring必需
The content of the document that will be returned to Ask Fern during document retrieval.
chunkstring or null可选
The textual content that should be vectorized when indexing the document. If not provided, the full document will be vectorized.
titlestring or null可选

The title of the document. This will be used with the url when Ask Fern cites this document.

urlstring or null可选
The url of the document. This will be used as the source of the document when Ask Fern cites it.
versionstring or null可选
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.
productstring or null可选
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.
keywordslist of strings or null可选
The keywords of the document. Adding keywords can improve document matching.
authedboolean or null可选
Whether the document is auth gated. If false, the document will be retrievable by all users.

响应

Successful Response
document_idstring
The unique identifier of the created document

错误

422
Unprocessable Entity Error