Prepare the private upload of a PDF
foliade_prepare_uploadCreates a single-use 10-minute deposit. Compute the size and the SHA-256 of the local PDF.
Transfer the bytes to upload_url with PUT, Content-Type application/pdf,
with the headers returned. Do not publish these headers in your reply.
This ticket allows no reading and is not an API key for the account.
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": {
"filename": "<filename>",
"size_bytes": "<size_bytes>",
"sha256": "<sha256>"
},
"name": "foliade_prepare_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| sha256 | Yes | ||
| filename | Yes | ||
| language | No | fr | |
| guest_mode | No | ||
| size_bytes | Yes | ||
| notice_version | No |