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
| Parameter | Type | Required | What it does |
|---|---|---|---|
inputs | array of string | File ids, in order. | |
steps | array of object | yes |
Response
The quote.
| Field | Type | Required | What it does |
|---|---|---|---|
object | "quote" | yes | |
credits | integer | yes | |
estimate | boolean | yes | True when pages are only known after converting (non-PDF inputs). |
steps | array of object | yes | |
balance | integer | yes |
Errors
Errors are problem details (RFC 9457) with a code you can branch on and a request_id for support.