Get all documents
Using /documents
endpoint you can get the details of all the PDF documents uploaded along with their docIds
.
Each 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 PDFimportUrl
- source URL of the imported PDF if any
Documents
Get all documents
GET
https://pdf.ai/api/v1/documents
To get the uploaded documents and their docIds.
Headers
Name
Type
Description
X-API-Key*
string
<API-Key>
{
"data": [
{
"id": "abcdxxxxxxx",
"name": "abcd.pdf",
"size": 123456,
"isPublic": true,
"uploadedAt": "2023-08-09T06:20:02.854Z",
"url": "https://cdn.openai.com/papers/gpt-4.pdf",
"importUrl": "https://cdn.example.com/doc1.pdf"
},
{
"id": "efghxxxxxxx",
"name": "efgh.pdf",
"size": 123456,
"isPublic": false,
"uploadedAt": "2023-08-09T06:16:58.750Z",
"url: "",
"importUrl": ""
}
]
}
Last updated
Was this helpful?