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 PDFname
- name of the uploaded PDFsize
- size of the PDF in bytesisPublic
- boolean(true or false)uploadedAt
- PDF upload timestampurl
- URL of the PDFtags
- List of tags associated with the documentimportUrl
- 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"],
}
Last updated
Was this helpful?