fynepdf logo
Docs menu

Price a job without running it

Checks the steps against the files and returns the credits it would cost. Nothing runs, nothing is charged.

POST /v1/jobs/quote

Request

curl -X POST https://api.fynepdf.com/v1/jobs/quote \
  -H "Authorization: Bearer $FYNEPDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inputs":["file_01jc8x4m2k9q7r3t5vwy6z"],"steps":[{"action":"compress","params":{"target_size_bytes":5000000}},{"action":"page_numbers","params":{"position":"bottom-right"}}]}'

Body

ParameterTypeRequiredWhat it does
inputsarray of stringFile ids, in order.
stepsarray of objectyes

Response

The quote.

FieldTypeRequiredWhat it does
object"quote"yes
creditsintegeryes
estimatebooleanyesTrue when pages are only known after converting (non-PDF inputs).
stepsarray of objectyes
balanceintegeryes

Errors

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