Libraria API
Add Document
Add a new document to your library via scraping or raw text
POST
/
library
/
{library_id}
/
document
Parameters
library_id
string
requiredThe 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
url
string
The url to scrape from
Raw text
text
string
The text body of the document you want to add
title
string
The text body of the document you want to add
sourceUrl
string
The source of the document. Used for the ‘Learn More’ snippet
imageSnippet
string
The url of the image snippet you want to add in responses
Response
status
string
One of queued, success, failed
message
string