Get All Attachments in a Note

Purpose

This API is used to retrieve the details of all attachments in a note.

OAuth Scope

Use the scope

ZohoMail.notes.ALL (or) ZohoMail.notes.READ

to generate the Authtoken.

ALL - Grants full access to notes.

READ - Grants access to read notes.

Request URL

Method: GET

For Group :

https://mail.zoho.com/api/notes/groups/{groupId}/{noteId}/attachments

or

For Personal :

https://mail.zoho.com/api/notes/me/{noteId}/attachments

Path Parameters

  • groupIdlong
    • Specifies the unique ID used of the group.
    • This parameter can be retrieved from the Get all groups API.
  • noteIdlong
    • Specifies the unique identifier used for the note whose details are to be retrieved.
    • This parameter can be retrieved from the Get all notes API.

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

``

Sample Request - For Group Notes

Copiedcurl "https://mail.zoho.com/api/notes/groups/84626808/171204125579110001/attachments" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Request - For Personal Notes

Copiedcurl "https://mail.zoho.com/api/notes/me/attachments" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Success Response

Copied{
  "status": {
    "code": 200,
    "description": "success"
  },
  "data": {
    "attachments": [
      {
        "fileName": "test1.jpg",
        "attachmentID": "139313402266320010"
      }
    ],
    "inlineAttachments": [
      {
        "fileName": "test2.png",
        "attachmentID": "139313401854580020"
      }
    ]
  }
}

Sample Failure Response

Copied{
  "status": {
    "code": 500,
    "description": "Operation not permitted"
  },
  "data": {}
}