Notes APIs
Notes are to provide some additional information about a contact, account, deal or task. You can find the notes section in most of the modules. Hence, with Notes API, you can create, delete, or update notes. You can perform actions on single or multiple notes.
Get Notes
Purpose
To get the list of notes.
Request Details
Request URL
{api-domain}/crm/v2/Notes
To get a specific note:
{api-domain}/crm/v2/Notes/{note_id}
To get notes from a specific record:
{api-domain}/crm/v2/{module_api_name}/{record_id}/Notes
Supported modules
Leads, Accounts, Contacts, Deals, Campaigns, Tasks, Cases, Events, Calls, Solutions, Products, Vendors, Price Books, Quotes, Sales Orders, Purchase Orders, Invoices, and Custom
Header
Authorization: Zoho-oauthtoken 100xx.d92d4xxxxxxxxxxxxx15f52
Scope
scope=ZohoCRM.modules.ALL
(or)
scope=ZohoCRM.modules.{module_name}.{operation_type}
(and)
scope=ZohoCRM.modules.notes.{operation_type}
Possible module names
leads, accounts, contacts, deals, campaigns, tasks, events, calls, cases, events, calls, solutions, products, vendors, pricebooks, quotes, salesorders, purchaseorders, invoices, and custom
Possible operation types
ALL - Full access to notes
READ - Get note data
Parameters
- pagenumber, optional
To get the list of records from the respective pages. Default value is 1.
- per_pagenumber, optional
To get the list of records available per page. The default and the maximum possible value is 200.
- fieldsstring, optional
Specify the API names of the fields whose details you want to receive in the response.
- sort_orderstring, optional
To sort the list of records in either ascending or descending order.
Possible values: asc - ascending order; desc - descending order
- sort_bystring, optional
Specify the API name of the field based on which the records must be sorted.
Possible values: Field API names. Example: Note_Title
The page and per_page parameter is used to fetch records according to their position in the CRM. Let's assume that the user has to fetch 400 records. The maximum number of records that one can get for an API call is 200. So, for records above the 200th position, they cannot be fetched. By using the page (1, 2) and per_page (200) parameter, the user can fetch all 400 records using 2 API calls.
The sort_order parameter applies to given sort_by parameter value.
If sort_by field is not provided, then it applies to the system-defined field.
Sample Request
Response JSON Keys
- OwnerJSON object
Represents the name, ID, and email of the record owner.
- Modified_Timestring
Represents the date and time at which the current note was last modified.
- $attachmentsJSON array
Represents the details of the attachment, if the current note has any.
- Created_Timestring
Represents the date and time at which the note was created.
- Parent_Idstring
Represents the display name and the unique ID of the parent record.
- $editableboolean
Represents if the user can edit the current note.
true: The user can edit the current note.
false: The user cannot edit the current note. - $se_modulestring
Represents the API name of the parent module of the note.
- Modified_ByJSON object
Represents the name, ID, and email of the user who last modified the note.
- idstring
Represents the unique ID of the current note.
- Created_ByJSON object
Represents the name, ID, and email of the user who created the current note.
- Note_Titlestring
Represents the title of the current note.
- Note_Contentstring
Represents the content of the current note.
- $is_shared_to_clientboolean
Represents if the note is shared with a client portal user.
- sizeinteger
Represents the size of the voice note in bytes, if any.
- $voice_noteboolean
Represents if the current note has a voice note attached.
Possible Errors
- INVALID_MODULEHTTP 400
The module name given seems to be invalid
Resolution: You have specified an invalid module name or there is no tab permission, or the module could have been removed from the available modules. Specify a valid module API name. - INVALID_MODULEHTTP 400
The given module is not supported in API
Resolution: The modules such as Documents and Projects are not supported in the current API. (This error will not be shown, once these modules are been supported). Specify a valid module API name. - INVALID_URL_PATTERNHTTP 404
Please check if the URL trying to access is a correct one
Resolution: The request URL specified is incorrect. Specify a valid request URL. Refer to request URL section above. - OAUTH_SCOPE_MISMATCHHTTP 401
Unauthorized
Resolution: Client does not have ZohoCRM.modules.notes.READ scope. Create a new client with valid scope. Refer to scope section above. - NO_PERMISSIONHTTP 403
Permission denied to read notes details
Resolution: The user does not have permission to retrieve notes data. Contact your system administrator. - INTERNAL_ERRORHTTP 500
Internal Server Error
Resolution: Unexpected and unhandled exception in Server. Contact support team. - INVALID_REQUEST_METHODHTTP 400
The http request method type is not a valid one
Resolution: You have specified an invalid HTTP method to access the API URL. Specify a valid request method. Refer to endpoints section above. - AUTHORIZATION_FAILEDHTTP 400
User does not have sufficient privilege to read notes
Resolution: The user does not have the permission to retrieve notes data. Contact your system administrator.
Sample Response
Copied