postedly_upload_document
Stores one recipient-facing PDF from its exact bytes, supplied as canonical base64, without a browser. Accepts a valid, unencrypted PDF up to 10 MiB decoded; for postcard, a JPEG or PNG photo or front image for composing a postcard is also accepted (PNG at most 4 megapixels; use a JPEG for larger pictures). When expectedSha256 is supplied, a mismatch rejects the upload; a matching hash confirms byte integrity, not content correctness. Returns a private document ID, page count, byte count, SHA-256 and an authenticated preview URL. Service-specific layout checks run at quote time. Authenticated multipart POST /api/documents on the same OAuth connection is the equivalent HTTP upload. Does not create a quote, take payment or send anything.
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": {
"service": "<service>",
"filename": "<filename>",
"contentBase64": "<contentBase64>"
},
"name": "postedly_upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| filename | Yes | Filename only, without a local path. | |
| contentBase64 | Yes | Standard padded base64 of the exact file bytes. No data URL prefix or whitespace. | |
| expectedSha256 | No | Optional SHA-256 computed from the original file bytes; a mismatch rejects the upload. |