Download File
gorgias_download_fileDownload private files hosted on Gorgias by extracting file type, domain hash, and resource name from the attachment URL.
Instructions
GET /api/{file_type}/download/{domain_hash}/{resource_name} — Download a private file hosted on Gorgias's servers. The path parameters are derived from a file's attachment URL: strip the scheme and domain (e.g., 'https://gorgias.io') from the URL and the remaining path segments map to file_type, domain_hash, and resource_name. For example, 'https://gorgias.io/attachments/abc123/file.png' maps to file_type='attachments', domain_hash='abc123', resource_name='file.png'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_type | Yes | The type/category classification of the file, derived from the attachment URL path (e.g., 'attachments') | |
| domain_hash | Yes | A hashed identifier for the Gorgias account domain, derived from the attachment URL path | |
| resource_name | Yes | The name/identifier of the specific file resource, derived from the attachment URL path (e.g., 'package-damaged.png') |