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

Document

Get single document

GET https://pdf.ai/api/v1/documents/{docId}

To get the uploaded document using its docId

Headers

NameTypeDescription

X-API-Key*

string

<API-Key>

{
  "id": "efghxxxxxxx",
  "name": "efgh.pdf",
  "size": 123456,
  "isPublic": false,
  "uploadedAt": "2023-08-09T06:16:58.750Z",
  "url": "https://cdn.openai.com/papers/gpt-4.pdf"
}

Last updated