# Get single document

Using `/documents/<docId>` endpoint you can get the details of the Document ID (`docId`) specified.&#x20;

#### The document will have the following fields:

* `id` - docId of the PDF
* `name` - name of the uploaded PDF
* `size` - size of the PDF in bytes
* `isPublic` - boolean(true or false)
* `uploadedAt` - PDF upload timestamp
* `url` - URL of the PDF
* `tags` - List of tags associated with the document
* `importUrl` - source URL of the imported PDF if any

## Document

## Get single document

<mark style="color:blue;">`GET`</mark> `https://pdf.ai/api/v1/documents/{docId}`

To get the uploaded document using its `docId`

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| X-API-Key<mark style="color:red;">\*</mark> | string | \<API-Key>  |

{% tabs %}
{% tab title="200 Details of the document" %}

```json
{
  "id": "efghxxxxxxx",
  "name": "efgh.pdf",
  "size": 123456,
  "isPublic": true,
  "uploadedAt": "2023-08-09T06:16:58.750Z",
  "url": "https://cdn.openai.com/papers/gpt-4.pdf",
  "importUrl": "https://cdn.example.com/doc1.pdf",
  "tags": ["Tag1", "Tag2"],
}
```

{% endtab %}

{% tab title="401 Invalid API key" %}

```json
{
    "error": "Invalid API key"
}
```

{% endtab %}

{% tab title="404 Not found" %}

```json
{
    "error": "No document found!"
}
```

{% endtab %}
{% endtabs %}
