Read notes with the API
List the notes on a record or across your records, count them, and read the earlier notes about a job's customer, with the same access rules the Notes tab uses.
Notes live at /v1/notes. Every note is addressed by its note_… uid, and
every record a note hangs off is named by its own uid
(How records are identified). Reading a record's notes needs that record type's
note permission, for example notes.accounts.read, notes.work_orders.read
or notes.tasks.read; appointments use schedule.bookings.read.
List notes
GET /v1/notes lists the notes you may read in the Notes tab's order: pinned
notes first, then newest first unless someone dragged them into another order.
| Query | Meaning |
|---|---|
entity_type |
The record type: account, contact, location, service_asset, work_order, booking, project, task, portfolio. |
entity_id |
The record's uid (acct_…, work_order_…, task_……). Needs entity_type. Left out, the list covers every record of that type you can open. |
page_size |
1 to 200, 50 by default. |
cursor |
Pass the next_cursor of the last answer to read on. Do not combine it with page. |
pinned_only, tag, folder_id |
Narrow the list. folder_id is a folder uid and needs entity_type and entity_id. |
curl -s "https://app.novabmp.com/v1/notes?entity_type=work_order&entity_id=work_order_8f2c41d07a9b3e15" \
-H "Authorization: Bearer $NOVA_KEY"
The answer is {"data": [...], "total": 12, "next_cursor": "..."}.
A record's notes open exactly when the record does. A record in a branch you
cannot open, a record you could not read, and a task its own page would not
show you all answer 404, the same as a record that does not exist. A private
or restricted task's notes reach only the people on that task (its owner,
assignee, collaborators, followers and anyone its access list allows), and
someone else's personal task has no notes for you at all. A list without
entity_id leaves those notes out in the same way.
Count notes
GET /v1/notes/counts takes the same entity_type and entity_id and
answers how many notes each view of the Notes tab holds:
{"all": 12, "pinned": 2, "archive": 3, "trash": 1, "folders": {"wfolder_3b9e…": 4}}
folders is keyed by folder uid and appears only on a record that uses
folders. The counts follow the same access rules as the list, so they always
match what the list returns.
Earlier notes about the customer
GET /v1/notes/earlier/{record_uid} takes a job (work_order_…), task
(task_…), project (proj_…) or appointment (sbook_…) uid. It answers the
notes you may read about that record's customer that were written somewhere
else: on the customer, the job's site and equipment, and the customer's other
work. The record's own notes, archived notes and notes in the trash are never
in it.
| Query | Meaning |
|---|---|
page_size |
1 to 50, 10 by default. |
cursor |
The next_cursor of the last answer. |
count_only |
true answers the total alone, with an empty data. |
Each note carries a source naming where it was written: type, uid and a
label a person reads ("Customer", "WO-00123", "Task: Replace filter"). The
answer's customer is null when the record has no customer; the list is
then empty. A record you could not open is 404.
Tags on a note
GET, PUT, POST …/add and POST …/remove on
/v1/tags/entities/notes.note/{note_uid} read and change a note's tags. The note
is named by its note_… uid only: a number is refused with 422 and the code
uid_required. Reading a note's tags needs what reading the note needs (its
record opens for you, and the note type's read permission); changing them needs
the note type's tag permission, for example notes.tasks.tag. A note you could
not open is 404, the same as one that does not exist. People who follow a tag
are told about a tagged note only when they could open it themselves.
Create a note with files
Use POST /v1/notes with the record's entity_type and opaque entity_id.
Set with_attachments to true when the first thing you want to save is a
file. You can supply an empty rich-text document as the content string.
Your key needs permission to create notes on the record and to upload note
files. The same client_operation_id and payload return the same note if you
retry the create request.
Use the returned note_… uid as entity_id and note as entity_type when
you start the file upload with POST /v1/files/uploads. The upload links the
file to that note when it finishes. Without with_attachments, a new note
still needs text or a title.
Errors
A note type your key cannot read is 403 with the missing permission keys
(Errors and how to recover). An unknown entity_type is 400. A uid of the wrong record
type, or one nobody has, is 404.