GET/users/{userId}/mail/{mailId}/attachments/{attachmentId}
Downloads a specified email's attachment.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
mail
mail.read
| Parameter | Type | Description |
|---|---|---|
| userId | string | Member ID (must be URL-encoded)
required example : me |
| mailId | string | Message ID required example : 1 |
| attachmentId | string | Attachment ID required example : 1 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| data | string | Attached file data (encoded with Base64) required minLength : 1 |
| filename | string | Attachment file name required minLength : 1 maxLength : 250 |
example
1{2 "data": "dGVzdA==",3 "filename": "file1.jpg"4}Bad Request
Not Found