APINote

Get notes

GET
/public/v1/notes

Lists the notes, calls, meetings and emails users logged by hand, oldest first (by when they were logged). Results are paginated, 100 notes per page: next_page holds the URL of the following page, or null on the last page. Notes with no text are left out.

Without record_type and record_id, the notes logged directly on assemblies, batches, companies, invoices, orders (SALES_ORDER), purchases, returns and stock transfers are listed, and record names the record each was logged on.

Give record_type and record_id together to list one record's notes as its History tab in Distru shows them. Except for a company, whose list has only the notes logged on it, that includes the notes logged on records linked to it, such as a sales order's invoice, invoice payment, shipment or return, or a task linked to the record, which the list without a record leaves out; logged_on names the record such a note was logged on, and record is the record you asked for.

Required permission: the same as viewing the record in Distru, for example invoices_permissions_view for an INVOICE. A note shows only if you may see the record it was logged on: notes on record types you lack the permission for, on records your team restrictions hide, and on deleted records are left out, linked records' included. With record_type and record_id, a record you may not see returns 403.

Authorization

Bearer
headerAuthorizationBearer <token>

API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.

Query Parameters

record_type?string

The kind of record to list the notes of. Needs record_id.

Value in"ASSEMBLY""BATCH""COMPANY""INVOICE""PURCHASE""RETURN""SALES_ORDER""STOCK_TRANSFER"
record_id?string

The record's ID, as its type's endpoints return it. Needs record_type. An ID that doesn't exist for your company returns 404; one your team restrictions hide returns 403.

record_types[]?array<>

Only notes logged on these kinds of record. Repeat the bracketed key once per kind. At most 200. Can't be used with record_type.

note_types[]?array<>

Only these kinds of note. Repeat the bracketed key once per kind. At most 200.

user_ids[]?array<string>

Only notes written by these users, by user ID. Repeat the bracketed key once per ID. At most 200.

ids[]?array<string>

Only these notes, by ID. Repeat the bracketed key once per ID. Unknown IDs match nothing; an empty list is treated as no filter. At most 200.

inserted_datetime?string

Filter by when the note was logged, a comma-separated start,end pair of ISO8601 datetimes (inclusive). Either bound may be omitted for an open-ended range.

updated_datetime?string

Filter by when the note was last edited, a comma-separated start,end pair of ISO8601 datetimes (inclusive). Either bound may be omitted for an open-ended range.

page?string

Page selector. Page size is fixed by the server; paginate by following the next_page URL in each response rather than building page selectors yourself — it is null on the last page. next_page uses page[after]=<cursor>, an opaque token marking where the next page resumes; pass it back exactly as given, and only to the endpoint that issued it. This is seek-based, so every page stays fast no matter how deep you page.

Response Body

A page of notes

*/*
  1. response

A page of notes

data?array<>

Notes

next_page?string

URL for the next page of results; null when there is no next page

Example Request
curl -X GET 'https://app.distru.com/public/v1/notes?record_type=INVOICE&record_id=00000000-0000-0000-0000-000000000159'
Example Response
{  "data": [    {      "id": "00000000-0000-0000-0000-000000000664",      "inserted_datetime": "2025-01-01T00:00:00.000000Z",      "logged_on": null,      "note_type": "NOTE",      "record": {        "id": "00000000-0000-0000-0000-000000000159",        "type": "INVOICE"      },      "text": "Called the buyer",      "updated_datetime": "2026-12-02T18:44:56.871444Z",      "user": {        "id": "00000000-0000-0000-0000-00000000236e",        "name": "FirstName1244 LastName1245"      }    },    {      "id": "00000000-0000-0000-0000-000000000668",      "inserted_datetime": "2025-01-02T00:00:00.000000Z",      "logged_on": {        "id": "00000000-0000-0000-0000-000000000041",        "name": "Payment $100.00",        "type": "INVOICE_PAYMENT"      },      "note_type": "NOTE",      "record": {        "id": "00000000-0000-0000-0000-000000000159",        "type": "INVOICE"      },      "text": "Wired",      "updated_datetime": "2026-12-02T18:44:56.875343Z",      "user": {        "id": "00000000-0000-0000-0000-00000000236e",        "name": "FirstName1244 LastName1245"      }    }  ],  "next_page": null}