fynepdf logo
Docs menu

Get a file

The file, with a fresh one-hour download_url when it's ready.

GET /v1/files/{id}

Request

curl https://api.fynepdf.com/v1/files/file_01jc8x4m2k9q7r3t5vwy6z \
  -H "Authorization: Bearer $FYNEPDF_API_KEY"

Path and query parameters

ParameterTypeRequiredWhat it does
idstringyes

Response

The file.

FieldTypeRequiredWhat it does
object"file"yes
idstringyes
filenamestringyes
content_typestringyes
kindstringyes
bytesinteger or nullyes
pagesinteger or nullyes
status"pending" · "ready" · "deleted" · "expired"yes
source"upload" · "url" · "multipart" · "job" · "library"yes
job_idstring or nullyes
created_atstringyes
expires_atstringyes
download_urlstring or nullyesA signed link valid for one hour; ask again for a fresh one.

Errors

Errors are problem details (RFC 9457) with a code you can branch on and a request_id for support.