Get All Groups in Bookmarks

Purpose

This API is used to retrieve all the groups of the user in Bookmarks.

OAuth Scope

Use the scope

ZohoMail.links.ALL (or) ZohoMail.links.READ

to generate the Authtoken.

ALL - Grants full access to links.

READ - Grants access to read links

Request URL

Method: GET

https://mail.zoho.com/api/links/groups

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

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

Sample Response

Copied{
   "status": {
       "code": 200,
       "description": "success"
   },
   "data": [
       {
           "groupId": "84626808",
           "name": "zylker1"
       },
       {
           "groupId": "78762952",
           "name": "zylker2"
       },
       {
           "groupId": "79002274",
           "name": "zylker3"
       }
   ]
}

Sample Failure Response

Copied{
   "data": {
       "errorCode": "INVALID_METHOD"
   },
   "status": {
       "code": 404,
       "description": "Invalid Input"
   }
}