PDF upload report
validate_pdfGet the report for an uploaded PDF: page count, page size, the size its pages are or are scaled to (by_sku[sku].page_fit, e.g. A4 at 10×), and warnings. The report is advice: no file is refused for its content, and our print team checks every file against the order after payment. The one exception is a storybook, whose page count sets the price: create_order refuses a count we do not price (page_count_out_of_range). Free to call. Reads only your own uploads: without an API key, the uploads you made without one; with a key, that key's uploads.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"upload_id": "<upload_id>"
},
"name": "validate_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | The upload_id returned by create_upload. |