Emails
Get email attachment
GET
/api/v1/emails/{emailId}/attachments/{attachmentId}
Get email attachment
Returns metadata for a stored email attachment, including a signed URL for downloading the attachment content.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
emailId * |
path | integer | Internal email id. |
attachmentId * |
path | string | Attachment id. |
Responses
| Status | Schema | Description |
|---|---|---|
200 |
EmailAttachment | Email attachment metadata |
401 |
AgentError | Missing or invalid auth |
404 |
AgentError | Email or attachment not found |
Example 200 response
{
"id": "string",
"filename": "string",
"downloadUrl": "string",
"contentType": "string",
"size": 1,
"kind": "string"
}
Example 401 response
{
"error": "string",
"message": "string",
"issues": [
{
"path": [
"string"
],
"message": "string",
"code": "string"
}
]
}
Example 404 response
{
"error": "string",
"message": "string",
"issues": [
{
"path": [
"string"
],
"message": "string",
"code": "string"
}
]
}