Get notes
https://{kibana_url}
- GET /api/note
- GET /s/{space_id}/api/note
Refer to Spaces for more information.
Returns Security Timeline notes as saved objects.
Query modes (mutually exclusive branches on the server):
documentIdsis set — Returns notes whoseeventIdmatches 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).savedObjectIdsis 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
documentIdsnorsavedObjectIds— Lists notes using saved-objects find semantics:page(default 1),perPage(default 10), optionalsearch,sortField,sortOrder,filter,createdByFilter, andassociatedFilter.
Requires the Timeline and Notes read privilege (notes_read).
Query Parameters
-
documentIds Event document
_idvalues to match against each note'seventId. When this parameter is present, the response is all matching notes (up to the server's hard limit), not a paged list usingpage/perPage.-
savedObjectIds Timeline
savedObjectIdvalue(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.-
pagestring Page number for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 1.-
perPagestring Page size for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 10.-
searchstring Search string for saved-objects find (list mode only).
-
sortFieldstring Field to sort by for saved-objects find (list mode only).
-
sortOrderstring Sort order (
ascordesc) for saved-objects find (list mode only).-
filterstring Kuery filter string combined with other list-mode filters (for example
createdByFilterorassociatedFilter). Typed as a string for API compatibility; interpreted by the saved-objects layer (list mode only).-
createdByFilterstring Kibana user profile UID (UUID). The server resolves the user's display identifiers and returns notes whose
createdBymatches any of them (list mode only).-
associatedFilter 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
documentIdsorsavedObjectIdsis used.-
Values:
alldocument_onlysaved_object_onlydocument_and_saved_objectorphan
Response
Notes and total count for the requested mode.
-
notesobjectrequired -
creatednumbernullable -
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
_idfor the event or alert this note refers to. Same value as thedocumentIdsquery parameter when fetching notes via GET /api/note. -
notestringnullable -
The text of the note
-
timelineIdstringrequired -
The
savedObjectIdof the Timeline this note belongs to (not the note's own ID). -
noteIdstringrequired -
The
savedObjectIdof the note -
versionstringrequired -
The version of the note
-
totalCountnumberrequired -
Number of notes returned (may be adjusted after the query when
associatedFilterapplies post-filtering).