Get Email Attachment Content
Purpose
The API is used to retrieve the content of the attachments in an email. In case, there are multiple attachments, the user needs to use the api for each attachment with the respective details.
OAuth Scope
Use the scope
ZohoMail.messages.ALL (or) ZohoMail.messages.READ
to generate the Authtoken.
ALL - Grants full access to messages.
READ - Grants access to read messages.
Request URL
Method: GET
https://mail.zoho.com/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachments/{attachmentId}
Path Parameters
- accountId* long
- This parameter is used to identify the specific account to fetch details.
- This parameter can be retrieved from the Get User Account Details API.
- folderId* long
- This parameter is used to identify the specific folder for which the emails need to be retrieved.
- This parameter can be retrieved from the Get All Folders API.
- messageId* long
- This parameter is the unique ID associated with the particular email.
- This parameter can be retrieved from List Emails API.
- attachmentId* long
- This parameter is the unique ID associated with the particular attachment.
- This parameter can be retrieved from Get Email Attachment Info API.
* - Mandatory parameter
Response Codes
Refer here for the response codes and their meaning.
Sample Request
Copied
Response
Copied