sam_attachment_url
Build a public download URL for a SAM.gov attachment using a resourceId, returning a signed S3 URL via 303 redirect for direct file access.
Instructions
Build the public download URL for an attachment resourceId. The URL returns a 303 redirect to a signed S3 URL — fetch with redirect:'follow' to get the file bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resourceId | Yes | Resource id from sam_get_opportunity → resourceLinks (URL-tail hex) |