GridBase
    Console

    Search the API reference

    Find an endpoint by name or path

    Notes

    Free-text notes attached to any entity by its uuid, under a topic.

    How notes behaves

    Structurally the sibling of Tags — a SERIAL id, a uuid target — and it carries the same guarantees for the same reasons.

    Behaviour worth knowing

    The list is totally ordered, by created_at then id. created_at defaults to NOW() and notes are written in batches, so ties are ordinary; without a tiebreak a tie makes paging undefined, and a row can come back on two pages while another never comes back at all.

    ?topic= filters. Notes carry a topic, so ask for the one you want rather than reading every note and filtering in your own memory.

    The create is addressed in the path, like every other route here: POST /notes/{target_id}. The target is never in the body, so there is no way for a path and a body to name different targets.

    PATCH, not PUT. PATCH merges the fields you send, which is what the method promises. An empty {} is refused rather than answered 200, since a PATCH that changes nothing is a request the client did not mean to send.

    An entity with no notes is 200 with items: []. Having no notes is not a missing entity.

    Bad paging is refused. ?limit=abc and ?limit=500 are both 400 with a machine code, never silently the default.

    note_id is bounded to the column. A value too large for the column is refused, not truncated into addressing a different row.

    There is no separate count route: meta.total on the list is the same number and it honours ?topic=, so ?topic=x&limit=1 returns one row and the full count.

    Events does keep a /count, for a reason that does not apply here: that table holds 1,213,926 rows, and the count alone measures 0.07s against 0.13s for a one-row page, because the page still runs the list query. A note count is a handful of rows either way.

    Lengths

    topic is bounded at 75 bytes, the column's own width; value at 64 KiB, which is this API's bound rather than the column's, so a note cannot be used as a megabyte of storage attached to a uuid. Over-long input is a 400 naming the field.

    Caching and auth

    Nothing here is cached: notes are written through this same API, usually by the client about to read them back, so a 60-second copy would hide a caller's own write.

    The three writes need write capability on the token and the contributor role.

    List Notes

    GET/api/v2/notes/{target_id}

    The notes on one entity.

    Path parameters

    • target_idrequirede.g. 5764a79a-08de-4c7e-a46f-051a257e44a8

    Query parameters

    • topicoptionale.g. Disclaimer
    • limitoptionale.g. 100
    • offsetoptionale.g. 0

    Query Parameters

    • topic: exact match. Omit for every topic. ?topic= (empty) is refused rather than matching nothing, which would look like "this target has no notes".
    • limit: default 100, max 1000.
    • offset: default 0.

    Response

    No class: a note is someone's prose, not a measurement, a derivation or a forecast. The field-presence rule omits it rather than labelling it "measured".

    meta.total honours topic, so it is a number the caller can page to.

    Ordered by created_at then id — see the folder docs for why the tiebreak matters.

    Errors

    400invalid_paramtarget_id not a uuid; topic empty or over 75 bytes
    400limit_exceededlimit above 1000
    Cache
    not cached.
    curl "https://utility-api-86672132515.us-east1.run.app/api/v2/notes/5764a79a-08de-4c7e-a46f-051a257e44a8" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": { "source": "note", "count": 1, "limit": 100, "offset": 0, "total": 1 },
      "items": [
        {
          "id": 6,
          "target_id": "5764a79a-08de-4c7e-a46f-051a257e44a8",
          "topic": "Disclaimer",
          "value": "Data provided is for informational purposes only ...",
          "created_at": "2026-02-14T09:12:04.118Z"
        }
      ]
    }
    Try it in the Explorer

    Create Note

    POST/api/v2/notes/{target_id}

    Add a note to an entity.

    Path parameters

    • target_idrequirede.g. 5764a79a-08de-4c7e-a46f-051a257e44a8

    The target is in the path, as on every other note route, so a create cannot disagree with itself about what it is attaching to.

    value is required. topic is optional and defaults to "General", the column's own default, applied here so the answer comes from the API rather than from whatever the DDL happens to say.

    Bounds: topic 75 bytes (the column), value 64 KiB (this API's).

    Needs write capability and the contributor role.

    Response

    201, {meta, item} carrying the stored row with its generated id and created_at.

    Errors

    400invalid_parambody is not JSON; target_id is the nil uuid; topic or value empty
    400missing_paramvalue absent
    400limit_exceededtopic over 75 bytes or value over 64 KiB
    403forbiddentoken is read-only, or caller lacks `contributor`
    curl -X POST "https://utility-api-86672132515.us-east1.run.app/api/v2/notes/5764a79a-08de-4c7e-a46f-051a257e44a8" \
      -H "Authorization: $GRIDBASE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "topic": "Maintenance",
      "value": "Feeder inspected 2026-12-01; no action required."
    }'

    Delete Note

    DELETE/api/v2/notes/{target_id}/{note_id}

    Remove a note.

    Path parameters

    • target_idrequirede.g. 5764a79a-08de-4c7e-a46f-051a257e44a8
    • note_idrequirede.g. 999999999

    The note must belong to the target in the path.

    One 404 for two cases

    "There is no note 7" and "note 7 belongs to something else" are the same answer to a caller addressing /notes/{target}/7. Distinguishing them would confirm the existence of a note on a target the caller did not name.

    Needs write capability and the contributor role.

    Response

    The same shape the tag delete uses, so a client handling both reads one.

    The example targets a note id that does not exist and asserts the 404, so it is safe to run anywhere. Point it at a real id to delete.

    Errors

    400invalid_paramtarget_id not a uuid; note_id not a positive integer within int32
    404not_foundno note with that id on this target
    403forbiddentoken is read-only, or caller lacks `contributor`
    curl -X DELETE "https://utility-api-86672132515.us-east1.run.app/api/v2/notes/5764a79a-08de-4c7e-a46f-051a257e44a8/999999999" \
      -H "Authorization: $GRIDBASE_API_KEY"
    Response200
    {
      "meta": { "source": "note" },
      "item": { "id": 6, "deleted": true }
    }

    Update Note

    PATCH/api/v2/notes/{target_id}/{note_id}

    Change a note's topic, its value, or both.

    Path parameters

    • target_idrequirede.g. 5764a79a-08de-4c7e-a46f-051a257e44a8
    • note_idrequirede.g. 6

    PATCH, because the write is a merge: the fields you send are updated and the ones you omit are left alone, which is what PATCH promises and PUT does not.

    Send at least one of topic or value. An empty {} is refused rather than answered 200 after writing the row back unchanged.

    The note must belong to the target in the path. Without that check, knowing a note id would be enough to edit it out from under whatever it is attached to.

    Needs write capability and the contributor role.

    Response

    { "meta": { "source": "note" }, "item": { ...the updated note... } }

    Errors

    400invalid_parambody is not JSON; neither topic nor value sent; note_id not a positive integer within int32
    400limit_exceededtopic over 75 bytes or value over 64 KiB
    404not_foundno note with that id on this target
    403forbiddentoken is read-only, or caller lacks `contributor`
    curl -X PATCH "https://utility-api-86672132515.us-east1.run.app/api/v2/notes/5764a79a-08de-4c7e-a46f-051a257e44a8/6" \
      -H "Authorization: $GRIDBASE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "value": "Feeder inspected 2026-12-01; follow-up scheduled."
    }'