GET/v1/pdfs/{id}
Fetch a PDF's record
PARAMETERS
- idpath · stringREQUIRED
- The PDF ide.g. pdf_2wq9tkz7hvbx4nmc8rde
REQUEST
curl "https://api.imageapis.com/v1/pdfs/pdf_2wq9tkz7hvbx4nmc8rde" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.imageapis.com/v1/pdfs/pdf_2wq9tkz7hvbx4nmc8rde", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.imageapis.com/v1/pdfs/pdf_2wq9tkz7hvbx4nmc8rde", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"id": "pdf_2wq9tkz7hvbx4nmc8rde",
"object": "pdf",
"status": "completed",
"url": "https://img.imageapis.com/i/pdf_2wq9tkz7hvbx4nmc8rde.pdf",
"format": "pdf",
"pages": 2,
"bytes": 90412,
"units": 2,
"created": "2026-10-10T18:10:40Z",
"completed": "2026-10-10T18:10:42Z",
"expires": "2026-11-09T18:10:40Z"
}
401Missing or invalid API key (from the gateway)
404No such template or record on this account
{
"error": "string",
"message": "string",
"param": "string"
}