Get notes
- Base URL
-
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
-
documentIdsoneOf -
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. -
Example:
["id-one","id-two"] -
savedObjectIdsoneOf -
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. -
Example:
15c1929b-0af7-42bd-85a8-56e234cc7c4e -
pagestringnullable -
Page number for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 1. -
Example:
1 -
perPagestringnullable -
Page size for list mode (when
documentIdsandsavedObjectIdsare omitted). Passed as a string; default 10. -
Example:
20 -
sortOrderstringnullable -
Sort order (
ascordesc) for saved-objects find (list mode only). -
Example:
desc -
filterstringnullable -
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).