Add Documents

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

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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,
    },
    ...
    ]
}
Body Params
documents
array of objects
required

A list of documents, all of them must have a unique identifier, a title and a body

Documents*
Headers
string

Your 32 characters API Key token. If you don't have one yet, register at api.pigro.ai to receive it

Responses

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