GET
/
library
/
{library_id}
/
document
/
{document_id}
Get Document
curl --request GET \
  --url https://api.libraria.ai/library/{library_id}/document/{document_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "doc_1",
  "url": "https://example.com/document/doc_1",
  "sourceUrl": "https://example.com/document/doc_1",
}

Parameters

library_id
string
required
The ID of the library to retrieve the document from
document_id
string
required
The ID of the document to retrieve

Response

id
string
The ID of the document that was retrieved
url
string
The URL of the document
sourceUrl
string
The URL of the document’s source
scrapeStatus
string
one of queued, running, success, or failed
{
  "id": "doc_1",
  "url": "https://example.com/document/doc_1",
  "sourceUrl": "https://example.com/document/doc_1",
}