Query modes (mutually exclusive branches on the server):
documentIds is set — Returns notes whose eventId matches the given Elasticsearch document _id (single string or array). Pagination query parameters (page, perPage, etc.) are not applied; the server uses a fixed page size (up to 10000 notes).
savedObjectIds is set — Returns notes linked to the given Timeline saved object id(s). Same fixed cap as above; list-mode query parameters are not applied.
Neither documentIds nor savedObjectIds — Lists notes using saved-objects find semantics: page (default 1), perPage (default 10), optional search, sortField, sortOrder, filter, createdByFilter, and associatedFilter.
Requires the Timeline and Notes read privilege (notes_read).
Event document _id values to match against each note's eventId. When this parameter is present, the response is all matching notes (up to the server's hard limit), not a paged list using page/perPage.
Example:["id-one","id-two"]
savedObjectIdsunionstring[] | string
Timeline savedObjectId value(s). Returns notes that reference those timelines. When present, list-mode pagination parameters are not used; up to the server's hard limit of notes may be returned.
Example:15c1929b-0af7-42bd-85a8-56e234cc7c4e
pagestringnullable
Page number for list mode (when documentIds and savedObjectIds are omitted). Passed as a string; default 1.
Example:1
perPagestringnullable
Page size for list mode (when documentIds and savedObjectIds are omitted). Passed as a string; default 10.
Example:20
searchstringnullable
Search string for saved-objects find (list mode only).
sortFieldstringnullable
Field to sort by for saved-objects find (list mode only).
sortOrderstringnullable
Sort order (asc or desc) for saved-objects find (list mode only).
Example:desc
filterstringnullable
Kuery filter string combined with other list-mode filters (for example createdByFilter or associatedFilter). Typed as a string for API compatibility; interpreted by the saved-objects layer (list mode only).
createdByFilterstringnullable
Kibana user profile UID (UUID). The server resolves the user's display identifiers and returns notes whose createdBy matches any of them (list mode only).
Example:f1c2d3e4-5b6a-7890-abcd-ef1234567890
associatedFilterenum
Restricts notes by how they relate to a Timeline and/or an event document (list mode only). Some values apply extra filtering after the query. Ignored when documentIds or savedObjectIds is used.
The time the note was created, using a 13-digit Epoch timestamp.
createdBystringnullable
The user who created the note.
updatednumbernullable
The last time the note was updated, using a 13-digit Epoch timestamp
updatedBystringnullable
The user who last updated the note
eventIdstringnullable
Elasticsearch document _id for the event or alert this note refers to. Same value as the documentIds query parameter when fetching notes via GET /api/note.
notestringnullable
The text of the note
timelineIdstringrequired
The savedObjectId of the Timeline this note belongs to (not the note's own ID).
noteIdstringrequired
The savedObjectId of the note
versionstringrequired
The version of the note
totalCountnumberrequired
Number of notes returned (may be adjusted after the query when associatedFilter applies post-filtering).