Endpoint
Purpose
Returns a fresh AgentMail download link for an attachment already stored on the case.Authentication
Path Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | Case ID |
attachmentId | string | Yes | Attachment ID from attachments on the case or webhook payload |
Example Request
Example Response
Notes
downloadUrlis temporary.expiresAtis an ISO 8601 timestamp.- Request the file URL only when you are ready to fetch the file.
Errors
| Status | Code | Meaning |
|---|---|---|
400 | INVALID_REQUEST | Missing case ID or attachment ID |
401 | UNAUTHORIZED | Missing or invalid API key |
403 | FORBIDDEN | Inactive API key or case belongs to another user |
404 | CASE_NOT_FOUND | No case exists for that ID |
404 | ATTACHMENT_NOT_FOUND | Attachment is not stored on the case |
500 | INTERNAL_ERROR | Attachment lookup against AgentMail failed |