Skip to main content
GET /diff/{pid} shows you exactly what changed between the last two probe cycles for a tracked application. Each entry in the diff array names a state key and its value before and after the change. This is especially useful immediately after dispatching an action — call /diff to confirm which fields were affected without re-reading the entire state snapshot. If nothing changed between cycles, the diff array is empty.

Endpoint

integer
required
OS process ID of the target application. Obtain from GET /apps.

Response

integer
OS process ID of the queried application.
string
Stable semantic identifier for the application.
array
Array of field-level change records. Each entry describes a single state key that changed between the two most recent probe cycles.
datetime
ISO 8601 timestamp of the most recent probe cycle included in the diff.
string
capture_id (UUIDv7) of the older snapshot used as the baseline.
string
capture_id (UUIDv7) of the newer snapshot used as the current state.

Example

Notes

  • Returns an empty diff array when no state keys changed between the last two probe cycles. This is not an error condition.
  • Returns 404 when the daemon has fewer than two completed probe cycles for the given PID. This happens when an application was attached very recently. Wait for at least one full probe cycle to complete and retry.

Error Responses