ecm_get_piece_content
Retrieve scanned PDF or envelope images for a mail piece using its piece ID. Select pdf, image, or all to get the exact document or attachment you need.
Instructions
Get scanned content (PDF or images) from a mail piece. Returns the scanned PDF document and/or envelope images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| piece_id | Yes | The piece ID to get content for | |
| content_type | No | Filter by type: 'pdf' for scanned document, 'image' for envelope images, 'all' for everything (default: 'pdf') |