Libraria API
Add Document
Add a new document to your library via scraping or raw text
POST
/
library
/
{library_id}
/
document
Parameters
The ID of the library to add the document to
Body
You may choose one of:
- A URL to scrape
- A raw text document
If you add both a url and a raw text document, an error will be returned.
Scrape URL
The url to scrape from
Raw text
The text body of the document you want to add
The text body of the document you want to add
The source of the document. Used for the ‘Learn More’ snippet
The url of the image snippet you want to add in responses
Response
One of queued, success, failed