Skip to main content
Add up to 50 documents at a time. Each document needs your own stable doc_id and its source text. The examples use the environment variables configured in the quickstart.

Choose stable IDs

doc_id identifies a document within an index. Sending the same ID again replaces the existing document, so use an ID from your source system rather than a title, URL, or content hash. This replacement behavior also makes an upload safe to repeat after a timeout.

Check every response

An upload can return HTTP 200 even when individual documents fail:
Only mark a document as complete when its ID is not in failed. Correct failed documents before sending them again.

Limits

  • 50 documents per request
  • 100 KiB of UTF-8 text per document
  • 255 characters per doc_id
  • 5 MiB for the complete JSON request
Keep metadata small and consistent. Search filters can match top-level string, number, or boolean fields exactly.

Delete a document

Delete documents when their source records are removed or should no longer be searchable:
Deletion is safe to repeat. See the API reference for complete request and response schemas.