Download or retrieve metadata for a specific attachment.
attachment).
Accept header:
| Format | Accept Header | Use Case |
|---|---|---|
| Binary | application/octet-stream | Download the actual file |
| JSON | application/json | Get metadata and Base64 data (for files < 50MB) |
Accept: application/json, you’ll receive:
| Field | Type | Description |
|---|---|---|
id | string | File UUID |
name | string | Original filename |
type | string | MIME type (e.g., application/pdf, image/jpeg) |
metadata.size | number | File size in bytes |
metadata.width | number | Image width in pixels (null for non-images) |
metadata.height | number | Image height in pixels (null for non-images) |
uri | string | Direct download URL |
data | string | Base64-encoded file data (only for files < 50MB) |
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | string | Yes | Comma-separated list of file UUIDs |
filename | string | No | Custom filename for the downloaded archive |
| Category | MIME Types |
|---|---|
| Documents | application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document |
| Images | image/jpeg, image/png, image/gif, image/webp, image/svg+xml |
| Spreadsheets | application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv |
| Archives | application/zip, application/x-rar-compressed, application/x-7z-compressed |
| Other | text/plain, application/json, application/xml |
| Code | Description |
|---|---|
200 | Success - File downloaded or metadata retrieved |
400 | Bad Request - Missing ids parameter (for bulk download) |
401 | Unauthorized - Invalid access token |
403 | Forbidden - No access to this file |
404 | Not Found - File doesn’t exist |
413 | Payload Too Large - File too big for JSON response (use octet-stream) |
429 | Too Many Requests - Rate limit exceeded |
500 | Server Error - Internal error |
OAuth2 access token. Include as: Authorization: Bearer {access_token}
Response format: application/json for metadata or application/octet-stream for file download
application/json, application/octet-stream Attachment UUID