Notes

Notes let you attach free-form, Markdown-formatted notes to a space or a device. Notes are visible to other users in your organization.

Notes work the same way in two places:

  • Space level — context for a whole site or room.
  • Device level — context for a single device.

Where to find Notes

Notes are available on both spaces and devices, but the entry point is in a different place on each:

  • On a space, Notes is a tab in the space's top navigation (Dashboard, Devices, Assets, Incidents, Files, Notes).
  • On a device, Notes is in the device's left-hand menu (Overview, Configuration, Contracts, …, Notes).

In both places the editor and the list of saved notes are identical, and the menu item shows a badge with the number of existing notes.



Add a note

  1. In the Notes tab, click into the Write a note… box. Markdown is supported.

  2. Type your note.

  3. Click Add note.

The saved note appears below the editor with the author's name and a timestamp.


Format with Markdown (Write / Preview)

Notes support Markdown, so you can add emphasis, lists, and links. Use the two tabs above the editor:

  • Write — type your Markdown. For example: **Device price:** $3000.

  • Preview — see how it will render before you save.

Saved notes always display the rendered Markdown.


Edit or delete a note

Open the menu on any note to manage it:

  • Edit — reopens the note in the Write/Preview editor. Make your changes and click Save, or Cancel to discard them.

  • Delete — permanently removes the note.


Device level vs. space level

The editor, Markdown support, and edit/delete actions are identical in both places — only the scope changes:

WhereUse it for
Space noteSpace → top navigation → NotesContext that applies to the whole site/room
Device noteDevice → left-hand menu → NotesContext that applies to a single device

Working with Notes via the API

Notes can be created, retrieved, and deleted programmatically. All endpoints use your organization API key (Settings → API Keys), sent in the request Authorization header. Base URL: https://hub.xyte.io. Note content supports Markdown, exactly like the portal editor.

MethodPurposeEndpoint
GETAll notes across all spaces/core/v1/organization/spaces/notes
GETNotes for one space/core/v1/organization/spaces/{space_id}/notes
GETAll notes across all devices/core/v1/organization/devices/notes
GETNotes for one device/core/v1/organization/devices/{device_uuid}/notes
POSTCreate a note on a space/core/v1/organization/spaces/{space_id}/notes
POSTCreate a note on a device/core/v1/organization/devices/{device_uuid}/notes
DELETEDelete a space note/core/v1/organization/spaces/{space_id}/notes/{note_id}
DELETEDelete a device note/core/v1/organization/devices/{device_uuid}/notes/{note_id}

Exact request and response fields are documented in the Notes API reference.

Retrieve a device's notes

curl -H "Authorization: <YOUR_API_KEY>" \
     "https://hub.xyte.io/core/v1/organization/devices/{device_uuid}/notes"

Create a note (Markdown body)

curl -X POST \
     -H "Authorization: <YOUR_API_KEY>" \
     -H "Content-Type: application/json" \
     -d '{"content": "**Device price:** $500"}' \
     "https://hub.xyte.io/core/v1/organization/spaces/{space_id}/notes"

Notes created through the API have a null author (created_by), because API calls carry no user context; notes added in the portal show the creating user.


Using Notes from the Xyte CLI

The Xyte CLI (@xyteai/cli) is a command-line tool for operating Xyte from a terminal or a shell-capable AI agent (Claude Code, Codex, Copilot). Because it authenticates with the same organization API key and talks to the same organization API, the Notes endpoints above are available through CLI-driven workflows alongside fleet inspection, incident watching, and report generation.

Get started in three steps (requires Node.js 22+):

npx -y @xyteai/cli@latest doctor environment --format json
xyte-cli setup run            # connect your tenant API key once
xyte-cli setup status --field tenantId

A basic example

Once connected, you (or an AI agent driving the CLI) can ask for a device's notes in plain language and get them back from the Notes API:

CLI reference and command list: https://xyte-io.github.io/xyte-cli/


What’s Next