Skip to Content
List PDFs

List PDFs

Send a GET request to this endpoint to retrieve a list of generated PDFs. Images are listed separately by List Images.

ℹ️

You will need to authenticate to use this API. See authentication.

Request

GET https://api.ojo.so/v1/pdf

Query Parameters

ParameterTypeDescription
pagenumber(Optional) Page number for pagination (default: 1)
pageSizenumber(Optional) Number of items per page (default: 10)
sortstring(Optional) Sort order: ‘asc’ or ‘desc’ (default: ‘desc’)
curl --request GET \ --url 'https://api.ojo.so/v1/pdf?page=1&pageSize=10&sort=desc' \ --header 'Authorization: Bearer <API Key>'

Response

Successfully retrieved the list of PDFs.

{ "items": [ { "id": "pdf-id-1.pdf", "pdfUrl": "<content domain>/path/to/document1.pdf", "pages": 2, "createdAt": "2026-09-28T12:34:56Z" } ], "totalItems": 1, "totalPages": 1, "currentPage": 1, "pageSize": 10 }

pdfUrl has no scheme. Prefix it with https:// to fetch the file.