pdf_export
Attach an exported PDF document to an existing Gmail draft server-side, keeping the PDF bytes out of the conversation.
Instructions
Deliver a PDF document session to its destination - v1: attach it to an existing Gmail draft, server-side (the PDF bytes never enter this conversation). Default filename is '{original-stem}-signed.pdf' for signed documents, '{original-stem}-filled.pdf' otherwise; override with destination.filename. Returns the draft's resulting attachment list. Rejected while a signature request is pending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| user_id | No | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| status | Yes | ||
| draft_id | No | Gmail draft id (gmail_draft destinations) | |
| filename | Yes | Filename the PDF was delivered under | |
| attachments | No | The destination draft's resulting attachment list | |
| destination_type | Yes |