Get a Specific Attachment in a Note

Purpose

This API is used to retrieve the details of a specific attachment 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

Group Notes:

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

or

Personal Notes:

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

Path Parameters

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

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

``

Sample Request - For Group Notes

Copiedcurl "https://mail.zoho.comapi/notes/groups/84626808/1712041255679110001/attachments/139313402266320010" \
-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/1712041255679110001/attachments/139313402266320010" \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Failure Response

Copied{
  "status": {
    "code": 400,
    "description": "Invalid Input"
  },
  "data": {
    "moreInfo": "file not available."
  }
}