List notes
/api/v1/notes
operationId: note.list
Base: https://portal.watcheye.com.au/api/v1/notes
Returns notes for the calling account. Results are paginated.
Notes are always attached to an entity (and the entity's program). Notes created in the
context of an event additionally carry an event_uuid. Use the filters to narrow to a
specific entity, program, event, or to a specific author or author type.
Filters
The following filters can be applied via the filter[...] query parameters:
entity_uuid- only notes for the given entityevent_uuid- only notes attached to the given eventprogram_uuid- only notes for entities in the given programcreated_by- one ofuser(only notes authored by any portal user on this account) orapi_key(only notes authored by any API key on this account). Use this for the coarse "human vs automation" distinction.created_by_user_uuid- only notes authored by the given portal user. The uuid must be a user on the calling account; otherwise the result is an empty page.created_by_api_key_uuid- only notes authored by the given API key. The uuid must be an API key on the calling account; otherwise the result is an empty page.created_at_from- inclusive lower bound on note creation time (ISO 8601)created_at_to- inclusive upper bound on note creation time (ISO 8601)
The top-level archived query parameter accepts true (only archived) or false (only
non-archived); omitting it returns both. (Archive is a portal-only operation - the API
surfaces the state but does not currently expose archive/unarchive endpoints.)
Filters that target a uuid (entity, event, program) return an empty page when the target uuid does not exist on the calling account, identical to the behaviour for a uuid that does not exist at all.
Sorting
The sort query parameter accepts created_at (default: -created_at, newest first) or
updated_at. Prefix with - for descending order.
Query parameters
| Field | Description |
|---|---|
page |
integer The page of results to return, starting at 1. |
per_page |
integer The number of notes per page (defaults to 30, max 500) |
filter[entity_uuid] |
string (uuid) Only records for the given entity. |
filter[event_uuid] |
string (uuid) Only notes attached to the given event. |
filter[program_uuid] |
string (uuid) Only records for entities in the given program. |
filter[created_by] |
string Filter to notes authored by any portal user ( |
filter[created_by_user_uuid] |
string (uuid) Filter to notes authored by a specific portal user. |
filter[created_by_api_key_uuid] |
string (uuid) Filter to notes authored by a specific API key. |
filter[created_at_from] |
string (date-time) Inclusive lower bound on |
filter[created_at_to] |
string (date-time) Inclusive upper bound on |
sort |
string Field to sort by; prefix with |
archived |
boolean Filter by archive status.
Note: The API will accept the string 'true' or the number 1 for true and the string 'false' or the number 0 for false as well as the boolean values. |
Responses
Notes list response
application/json
| Field | Description |
|---|---|
data |
array of objects An array of notes |
data[]. |
string (uuid) The note's UUID |
data[]. |
string A short obfuscated public identifier for the note (e.g. "N-A1-B2C-3D4") |
data[]. |
string The free-text content of the note (max 5000 characters) |
data[]. |
object or null Identifies who created the note. The
|
data[]. |
string Discriminator for the actor type. |
data[]. |
string (uuid) UUID of the user or API key that created the note. |
data[]. |
string Username of the portal user. Present only when |
data[]. |
string Label of the API key. Present only when |
data[]. |
boolean When true, the note is an immutable audit-trail entry and cannot be edited or deleted by any actor through any channel. PATCH and DELETE requests against an immutable note return 403. |
data[]. |
string (uuid) UUID of the entity this note is attached to |
data[]. |
string (uuid) UUID of the program the entity belongs to |
data[]. |
string (uuid) or null UUID of the event this note is attached to, if any. Notes created via the
Events PATCH endpoint with a |
data[]. |
string (date-time) or null ISO 8601 timestamp at which the note was archived in the portal (null if not archived) |
data[]. |
string (date-time) |
data[]. |
string (date-time) |
meta |
object |
meta. |
integer |
meta. |
integer |
meta. |
integer |
meta. |
integer |
api_reference |
string (uuid) |