Add all your documents in a single call. These documents, however, will not be visible in search until the train API will be called.

Your Add Documents request body should have the following structure:

{
  "documents": [
    {
      "id": int | str,
      "title": str,
      "body": str
    },
    {
      "id": int | str,
      "title": str,
      "body": str,
    },
    ...
    ]
}
Language
Click Try It! to start a request and see the response here!