Skip to main content
POST
Add Document

Parameters

string
required
The ID of the library to add the document to

Body

You may choose one of:
  1. A URL to scrape
  2. A raw text document
If you add both a url and a raw text document, an error will be returned. Scrape URL
string
The url to scrape from
Raw text
string
The text body of the document you want to add
string
The text body of the document you want to add
string
The source of the document. Used for the ‘Learn More’ snippet
string
The url of the image snippet you want to add in responses

Response

string
One of queued, success, failed
string