Get a user's activity log

🚧

Beta — subject to change. This endpoint is publicly available, but its request/response shape may evolve before General Availability as we incorporate early feedback.

Returns the changes one user made, to any record with an activity log, newest first: what did Jane do yesterday. Only their direct changes are listed, so the response always has direct_changes_only true: changes made by background work they started, such as stock moved by completing a manufacturing order, name no one and are not on it.

Entries are the same as on a record's own activity log, with the document each belongs to as parent, so a line's change says which order it is on, and a deleted record is still named. The page is what the activity log page in Katana shows the user the API key belongs to, filtered the same way, deleted records included. Newest first, paged by cursor. Narrow by changed_at_min, changed_at_max and action to need fewer pages.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

The user id, as GET /users returns it.

Query Params
record_type
array of strings

Only changes to these kinds of record, and their lines. Repeat it for more than one: record_type=sales_orders&record_type=products. Every kind by default.

record_type
action
array of strings

Only these kinds of change. Repeat it for more than one: action=create&action=delete.

action
Allowed:
date-time

Only changes at or after this time (ISO 8601).

date-time

Only changes before this time (ISO 8601). Must be later than changed_at_min.

integer
1 to 100
Defaults to 50

About how many entries to return, from 1 to 100. A page covers a span of time, so it can hold fewer, or none, and still have a next page; it can also hold a few more, when several changes share the last entry's time. Follow next_cursor until it is null.

string
length ≤ 100

The previous page's next_cursor, for the next, older page. Send the same filters with it. Leave it out for the newest entries.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
application/json