Get single document
Using /documents/<docId> endpoint you can get the details of the Document ID (docId) specified. 
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
GET https://pdf.ai/api/v1/documents/{docId}
To get the uploaded document using its docId
Headers
Name
Type
Description
X-API-Key*
string
<API-Key>
{
  "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"],
}{
    "error": "Invalid API key"
}{
    "error": "No document found!"
}Last updated
Was this helpful?
