aws configure, gcloud auth, etc.), or internal automation that may reveal additional credentials
or infrastructure details.
Request
POST /v1/data/commands · Required scope: view:commands (pro and ultra tiers)
At least one of terms, shell, start_date, or end_date is required.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
terms | string[] | One of the four required | [] | Substrings to match against the recorded command text, e.g. ["aws configure"] |
shell | string | null | See above | — | Shell name filter, e.g. "bash", "powershell", "zsh" |
start_date | string (date-time) | null | See above | — | Inclusive start filter, clamped by query_window_days |
end_date | string (date-time) | null | See above | — | Inclusive end filter |
sort_direction | asc | desc | No | desc | Must stay constant across pages |
cursor | string | null | No | — | Pagination token |
limit | integer | No | 25 | 1–500, clamped to your tier’s max_rows |
Example request
Response
200 OK — array of CommandRecord, cursor-paginated.
| Field | Description |
|---|---|
victim_id | SHA-256 victim ID — use with Victim Profiles |
shell | e.g. "bash", "zsh", "powershell" |
command | Recorded command text |
inserted_at | When the record was ingested |
Pagination
Cursor-paginated — see Pagination.Errors
| Status | code | Cause |
|---|---|---|
| 400 | VALIDATION_ERROR | None of terms, shell, start_date, end_date provided |
| 400 | INVALID_CURSOR | Tampered or stale cursor |
| 403 | FORBIDDEN_SCOPE | Key lacks view:commands (free tier) |
Tier notes
This endpoint requiresview:commands, which is not included on the free
tier — a free-tier key receives 403 FORBIDDEN_SCOPE. No fields on
CommandRecord are masked on pro or ultra tiers.