Label Details
The Label APIs help you to get and update information about the label details of a particular user account.
While using Folder-related API, use the OAuth Scope ZohoMail.tags.
Method Name | URL | Method Type | OAuth Scope | Purpose |
Create a New Label | /api/accounts/{accountId}/labels | POST | ZohoMail.tags | To create a new Label with the specified name and colour. |
Get All Label Details | /api/accounts/{accountId}/labels | GET | To get the details of the labels in the account, along with the Label Id details. | |
Get a Specific Label Details | /api/accounts/{accountId}/labels/{labelId} | GET | To get the details of a particular label, based on the Label Id. | |
Update a Label | /api/accounts/{accountId}/labels/{labelId} | PUT | To rename a particular label with the specified name and/or change the colour of the label. | |
Delete a Label | /api/accounts/{accountId}/labels/{labelId} | DELETE | To delete the label and remove the tagging of that label from the emails. |