pdfedge
API reference › Files

One file's record: its URL, pages, size and when it expires

GET/v1/files/{id}

GET/v1/files/{id}

One file's record: its URL, pages, size and when it expires

PARAMETERS
idpath · stringREQUIRED
The file id
e.g. fil_8kq2wzm4tnb7hdc3vrex
In the full reference
REQUEST
curl "https://api.pdfedge.com/v1/files/fil_8kq2wzm4tnb7hdc3vrex" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "id": "fil_8kq2wzm4tnb7hdc3vrex",
  "object": "file",
  "kind": "result",
  "operation": "merge",
  "name": "merged.pdf",
  "format": "pdf",
  "content_type": "application/pdf",
  "pages": 12,
  "bytes": 284113,
  "url": "https://files.pdfedge.com/f/fil_8kq2wzm4tnb7hdc3vrex.pdf",
  "keep": "1d",
  "created": "2026-10-11T18:10:40Z",
  "expires": "2026-10-12T18:10:40Z",
  "units": 1
}
404No such file on this account, or it has expired
{
  "error": "string",
  "message": "string",
  "param": "string"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.