Easymailing
Notes

List the notes of a record

GET /notes

GET/notes

Lists the notes written on one contact, company or opportunity, newest first, with their text, author and dates.

When to use: To read what has been written down about a record: previous calls, agreements, context before a meeting or a follow-up.

When not to use: You must name the record: there is no list of all the notes of the account. To read one note whose UUID you know, use get_note. For things that have to be done, with a due date and a person responsible, use list_tasks.

Filters: Exactly one of contact, company or opportunity is required, with the UUID of the record. A UUID that does not exist, or that the user cannot see, gives 404. The order is fixed (newest first); there is no order parameter and no text search. Pagination: notes are paged with itemsPerPage (default 30, maximum 50) and an opaque cursor[gt]: to read the next page, call again with the same record and the cursor[gt] of the hydra:next link of the previous response. The response gives the total number of notes of the record in hydra:totalItems; keep following hydra:next until a page comes back empty. hydra:previous takes you back: it carries the cursor[lt] of the first note of the page and returns the page just before it; use it the same way, with the same record.

Permissions: Requires a CRM seat and the crm.tasks_notes.read capability. The note is only visible to users who can see the record it belongs to: crm.contacts_companies.read for a contact or company, crm.opportunities.read plus access to the pipeline for an opportunity.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

contact?string

UUID of a contact: its notes. Send exactly one of contact, company and opportunity.

Formatuuid
company?string

UUID of a company: its notes. Send exactly one of contact, company and opportunity.

Formatuuid
opportunity?string

UUID of an opportunity: its notes. Send exactly one of contact, company and opportunity.

Formatuuid
itemsPerPage?integer

Notes per page. Default 30, maximum 50.

Range1 <= value <= 50
Default30
cursor[gt]?string

Opaque cursor of the next page, taken from the hydra:next link of the previous response. Use it only with the same record.

cursor[lt]?string

Opaque cursor of the previous page, taken from the hydra:previous link of the response. Use it only with the same record. Do not send it together with cursor[gt].

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/notes?contact=3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40&company=7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21&opportunity=5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95&itemsPerPage=30&cursor%5Bgt%5D=eyJ2IjoxfQ&cursor%5Blt%5D=eyJ2IjoxfQ" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "record": "/entity/1",    "record_type": "contact",    "title": "string",    "body_html": "string",    "preview_text": "string",    "created_by": {      "kind": "user",      "name": "string"    },    "updated_by": {      "kind": "user",      "name": "string"    },    "version": 0,    "can_edit": true,    "can_delete": true,    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]