Index a document by uploading a file

Index a document into the specified index by uploading a file. Supports UTF-8 encoded text-based files and PDF files. The file size must be less than 60MB.

Body Params
string
required

The name of the index to which the document will be added

file
required

Text-based files and PDF files are supported.

string

The ID of the document. If not provided, a unique document ID will be automatically generated by the server

string

Title of the document to be indexed

string

URL associated with the document to be indexed

string

Metadata associated with the document as JSON string. Accepts key value pairs where the value can be a string, number, boolean, or list of strings.

Responses

Language
Credentials
Header
Request
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json