Get Notes
Last updated
Was this helpful?
Was this helpful?
{
"data": [
{
"case_note_id": 118,
"uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
"note_tag": "Initial Triage",
"note_data": "<p>Device received and photographed.</p>",
"path": "/Triage/Initial Triage",
"parent_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"is_folder": false,
"created_on": "2026-08-01T15:04:05.000Z",
"updated_on": "2026-08-02T09:12:44.000Z",
"attachments": [
{ "uuid": "mhvXdrZT4jP5T8vBxuvm75", "key": "Cases/2026-0042/Documents/Note Images/mhvXdrZT4jP5T8vBxuvm75.png" }
],
"linked_case": {
"case_id": 42,
"uuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"
},
"linked_object": {
"type": "evidence",
"uuid": "e7c40f6e-2f19-4b52-9d7a-52a5a24c3f10",
"name": "EV-2026-0042-001"
},
"created_by": {
"user_id": 7,
"email": "examiner@example.com",
"first_name": "Alex",
"last_name": "Rivera",
"full_name": "Alex Rivera",
"title": "Forensic Examiner"
},
"updated_by": {
"user_id": 7,
"email": "examiner@example.com",
"first_name": "Alex",
"last_name": "Rivera",
"full_name": "Alex Rivera",
"title": "Forensic Examiner"
}
}
],
"page": 1,
"next_page": null,
"page_size": 3000,
"total": 1
}response = session.get(
f"{BASE_URL}/notes/0f8fad5b-d9cb-469f-a165-70867728950e",
params={"include_content": "true"},
)
note = response.json()["data"][0]
print(note["note_tag"])
print(note["note_data"])response = session.get(f"{BASE_URL}/notes", params={
"case_uuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"sort_by": "updated_on",
"sort_dir": "desc",
})
for note in response.json()["data"]:
print(f"{note['updated_on']} {note['note_tag']}")response = session.get(f"{BASE_URL}/notes", params={
"case_uuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"search": "chain of custody",
})
for note in response.json()["data"]:
print(note["note_tag"])
for snippet in note.get("snippets", []):
print(f" ...{snippet}...")response = session.get(f"{BASE_URL}/notes", params={
"case_uuid": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"tree": "true",
})
def print_tree(nodes, depth=0):
for node in nodes:
marker = "📁" if node["is_folder"] else "📄"
print(" " * depth + f"{marker} {node['note_tag']}")
print_tree(node.get("children", []), depth + 1)
print_tree(response.json()["data"])