postgrid_upload_pdf
Upload a PDF file to temporary storage and receive a short-lived URL accessible to PostGrid for mailing. Accepts a local file path or base64 content, enabling letter creation from any environment.
Instructions
Upload a PDF to temporary storage and get a URL that PostGrid can access. Use this before postgrid_create_letter when you have a PDF file to mail. Accepts either a local file path or base64-encoded PDF content. The URL expires after 5 minutes and the file is auto-deleted after 24 hours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | No | Base64-encoded PDF content. Use this from Cowork or sandboxed environments where file system access is unavailable. | |
| filePath | No | Absolute path to a local PDF file. Use this from Claude Code or other file-system-accessible environments. |