Add Single Document

Add a single document. This document will be added to your library and available for search without the need to call the Train API.

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

Your Add request body should have the following structure:

{
  "document": {
      "id": int | str,
      "title": str,
      "body": str
    }
}
Body Params
document
object
required

Single document instance. It must have a unique identifier, a title and a body

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