> ## Documentation Index
> Fetch the complete documentation index at: https://docs.libraria.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Document

> Get a document from a library

### Parameters

<ParamField path="library_id" type="string" required={true}>
  The ID of the library to retrieve the document from
</ParamField>

<ParamField path="document_id" type="string" required={true}>
  The ID of the document to retrieve
</ParamField>

### Response

<ResponseField name="id" type="string">
  The ID of the document that was retrieved
</ResponseField>

<ResponseField name="url" type="string">
  The URL of the document
</ResponseField>

<ResponseField name="sourceUrl" type="string">
  The URL of the document's source
</ResponseField>

<ResponseField name="scrapeStatus" type="string" optional={true}>
  one of queued, running, success, or failed
</ResponseField>

<ResponseExample>
  ```json Example Response
  {
    "id": "doc_1",
    "url": "https://example.com/document/doc_1",
    "sourceUrl": "https://example.com/document/doc_1",
  }
  ```
</ResponseExample>
