Get all notes

GET {{baseUrl}}/notes?user_id=<integer>&lead_id=<uuid>&deal_id=<integer>&person_id=<integer>&org_id=<integer>&start=0&limit=<integer>&sort=<string>&start_date=<date>&end_date=<date>&pinned_to_lead_flag=<number>&pinned_to_deal_flag=<number>&pinned_to_organization_flag=<number>&pinned_to_person_flag=<number>

Returns all notes.

Request Params

KeyDatatypeRequiredDescription
user_idstringThe ID of the user whose notes to fetch. If omitted, notes by all users will be returned.
lead_idstringThe ID of the lead which notes to fetch. If omitted, notes about all leads will be returned.
deal_idstringThe ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
person_idstringThe ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
org_idstringThe ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned.
startnumberPagination start
limitstringItems shown per page
sortstringThe field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, content, add_time, update_time.
start_datestringThe date in format of YYYY-MM-DD from which notes to fetch
end_datestringThe date in format of YYYY-MM-DD until which notes to fetch to
pinned_to_lead_flagstringIf set, the results are filtered by note to lead pinning state
pinned_to_deal_flagstringIf set, the results are filtered by note to deal pinning state
pinned_to_organization_flagstringIf set, the results are filtered by note to organization pinning state
pinned_to_person_flagstringIf set, the results are filtered by note to person pinning state

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;active_flag&quot;:true,&quot;add_time&quot;:&quot;2019-12-09 13:59:21&quot;,&quot;content&quot;:&quot;abc&quot;,&quot;deal&quot;:{&quot;title&quot;:&quot;Deal title&quot;},&quot;lead_id&quot;:&quot;adf21080-0e10-11eb-879b-05d71fb426ec&quot;,&quot;deal_id&quot;:1,&quot;last_update_user_id&quot;:1,&quot;org_id&quot;:1,&quot;organization&quot;:{&quot;name&quot;:&quot;Organization name&quot;},&quot;person&quot;:{&quot;name&quot;:&quot;Person name&quot;},&quot;person_id&quot;:1,&quot;pinned_to_lead_flag&quot;:false,&quot;pinned_to_deal_flag&quot;:true,&quot;pinned_to_organization_flag&quot;:false,&quot;pinned_to_person_flag&quot;:false,&quot;update_time&quot;:&quot;2019-12-09 14:26:11&quot;,&quot;user&quot;:{&quot;email&quot;:&quot;user@email.com&quot;,&quot;icon_url&quot;:&quot;https://iconurl.net/profile_120x120_123.jpg&quot;,&quot;is_you&quot;:true,&quot;name&quot;:&quot;User Name&quot;},&quot;user_id&quot;:1}],&quot;additional_data&quot;:{&quot;pagination&quot;:{&quot;start&quot;:0,&quot;limit&quot;:100,&quot;more_items_in_collection&quot;:true,&quot;next_start&quot;:100}}}