verdictan history
Use verdictan history to find, read, and export the conversations that the gateway captured in History. History contains only the traffic that was captured. It cannot restore message content that was not captured.
VERDICTAN_API_TOKEN or verdictan auth login, and history:read to read sessions across the organization (details).Each subcommand accepts --config <path>, --api-url <url>, --profile <name> (default default), and --region <region>. All subcommands except export accept --json. The option tables below list only the command-specific flags.
Choose a command for your task:
| Subcommand | Purpose |
|---|---|
list-sessions, get-session, export | Find a session, read its entries, or save a complete copy. |
search | Search captured content and session titles. |
stats | Count matching sessions and their entries across all pages. |
learn | Ask the API to condense a session. |
tag | List, add, or remove session tags. |
share | Add a user or team as a session member. |
condense | Build an artifact from local text, API summaries, or both. |
Find a conversation and read it
-
List the sessions with the most recent activity:
verdictan history list-sessions --limit 10Each line shows the session ID, a scope column, the entry count, and the last activity time.
-
Copy a session ID from the result. Read the session and its entries:
SESSION_ID="replace-with-a-session-id-from-the-list" verdictan history get-session --session-id "$SESSION_ID" --jsonThe
sessionobject holds the summary. Theentriesarray holds the first 500 entries inrequest_indexorder. -
Export the complete session to a file:
verdictan history export "$SESSION_ID" --format json --output session.jsonThe file can contain prompts and responses. Store it where only authorized readers have access.
-
Verify that the export is complete. The two numbers must match:
jq '(.entries | length), .session.entry_count' session.jsonexportrefuses to write the file when it receives fewer entries thanentry_count, so a written file always passes this check.
verdictan history list-sessions
verdictan history list-sessions reads GET /v1, newest activity first. It follows the page cursors until it has --limit matching sessions or the results end.
Usage
verdictan history list-sessions [--team-id <id>] [--agent-id <id>] [--since <rfc3339>] [--until <rfc3339>] [--limit <n>] [--json]Options
| Flag | Description |
|---|---|
--team-id <id> | Return only sessions for this team. The API filters on the team ID. |
--agent-id <id> | Return only sessions for this agent. The API filters on the agent ID. |
--since <rfc3339> | Keep sessions with last_activity_at after this time. The API applies this filter. |
--until <rfc3339> | Keep only sessions with last_activity_at at or before this time. The CLI applies this filter while it reads the pages. |
--limit <n> | Maximum number of sessions to print after the filters. The default is 50. A larger value reads more pages. |
--tag <name> | Filter the returned sessions by tag in the CLI. |
Text output prints one line for each session:
<session_id> <scope> entries=<entry_count> last_activity=<last_activity_at>The scope column always shows -, because the session record has no scope field. With --json, the command prints {"sessions": [...]}. Each session has fields such as session_id, actor_user_id, actor_team_id, agent_id, started_at, last_activity_at, entry_count, allowed_entry_count, blocked_entry_count, title, last_model, and tags. When no session matches, text output prints no sessions.
Examples
verdictan history list-sessions
verdictan history list-sessions --agent-id bcb8904e-d692-42bd-a176-bc5d408405b4 --limit 5
verdictan history list-sessions --since 2026-09-01T00:00:00Z --jsonverdictan history get-session
verdictan history get-session reads one session from GET /v1. The response contains the session summary and its first 500 entries.
Usage
verdictan history get-session --session-id <id> [--include-entries] [--json]Options
| Flag | Description |
|---|---|
--session-id <id> | Required. The session ID. |
--include-entries | Read all entry pages and return a flat .entries array. The default response contains the first 500 entries. |
Text output prints session_id, scope, started_at, entry_count, allowed, and blocked. The scope line always shows -. Use --json to read the entries.
If the second request fails, the command prints warning: could not fetch entries: <error> to standard error. The output then keeps the entries from the first response.
Examples
verdictan history get-session --session-id 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c
verdictan history get-session --session-id 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c --jsonverdictan history export
verdictan history export writes every entry of one session to standard output or a file. Use it when a session has more than 500 entries, or when you need a file you can check.
Usage
verdictan history export <session-id> [--format <markdown|json|txt>] [--output <path>]Options
| Flag | Description |
|---|---|
<session-id> | Required. The session ID. |
--format <markdown|json|txt> | Output format. The default is markdown. |
--output <path> | Write to this file, not to standard output. The command prints exported to <path> to standard error. |
The command reads the session, then reads the entries in pages of 500 with limit and offset. It writes nothing until it has all pages. It stops with an error when:
- An entry has no
entry_idor no integerrequest_index. - An
entry_idrepeats, orrequest_indexdoes not increase. - The pages end before the session
entry_count. The message ishistory entries pagination ended after <n> entries, but the session reports <m>; refusing an incomplete export.
The formats contain:
| Format | Content |
|---|---|
json | {"session": {...}, "entries": [...]} with the complete entry objects. |
markdown | A YAML front matter block with session_id, started_at, entry_count, and tags (when the session has tags), then one ## <role> heading and the text for each entry. |
txt | One [<role>]: <text> paragraph for each entry. |
In markdown and txt, the role is the role of the last request message, or the entry_kind when there is none. The text is the first response choice message content. When there is none, the text is the last request message content.
Examples
SESSION_ID="7f92ff69-7b29-4f2d-a8bb-766c06e61d3c"
verdictan history export "$SESSION_ID"
verdictan history export "$SESSION_ID" --format json --output session.json
verdictan history export "$SESSION_ID" --format txt --output session.txtThe API has two more export endpoints that the CLI does not call. Both need history:read and return the file in the response:
| Endpoint | Selection | Formats | Bound |
|---|---|---|---|
GET /v1 | One session | markdown, json, csv | First 1000 entries |
POST /v1 | At most 50 session IDs | jsonl, csv | First 1000 entries for each session |
verdictan history tag
verdictan history tag lists, adds, or removes tags on one session. Changes read the current tags and send the updated list to PATCH /v1.
Usage
verdictan history tag <session-id> [--tag <name> | --remove <name>] [--json]Options
| Flag | Description |
|---|---|
<session-id> | Required. The session ID. |
--tag <name> | Add a tag and preserve the other tags. |
--remove <name> | Remove a tag and preserve the other tags. |
Without --tag and --remove, the command lists the tags from the session. Text and JSON output both work. The API accepts at most 50 tags of at most 100 characters. Changes need history:write for the session. Tag updates replace the list, so concurrent edits can overwrite each other.
Examples
verdictan history tag 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c --jsonverdictan history search
verdictan history search sends a full-text query to GET /v1. The search covers entry content and session titles in the organization.
Search does not return content that the organization removed. A redaction removes the redacted entries from search, History retention removes expired entries and sessions, and organization deletion removes all History search content of the organization.
Usage
verdictan history search --query <text> [--entry-kind <kind>] [--agent-id <id>] [--team-id <id>] [--json]Options
| Flag | Description |
|---|---|
--query <text> | Required. The search text. The API rejects empty text with 400 search.invalid_query. |
--entry-kind <kind> | Return only one entry kind: chat, tool_call, system, system_annotation, or streaming_chunk. |
--agent-id <id> | Return only entries for this agent. |
--team-id <id> | Return only entries for this team. |
--since <rfc3339> | Earliest captured-entry time. The CLI sends it as date_from to server search. Fallback search also uses it. |
--until <rfc3339> | Latest captured-entry time. The CLI sends it as date_to to server search. Fallback search also uses it. |
--limit <n> | Maximum results. The default is 20. The CLI sends it as size to server search. Fallback search also uses it. |
Text output lists the server hits. With --json, the response is {"total": <n>, "hits": [...]}. Each hit has entry_id, session_id, session_title, entry_kind, content_highlight, decision, captured_at, and relevance_score.
When the search service is not configured or not available, the API returns 503. The CLI then prints search service unavailable, falling back to client-side filter to standard error. The fallback reads every session page you can see and the entries of each session, and does a case-insensitive substring match. It applies --since, --until, and --limit in the CLI. It prints {"results": [...]} with session_id, session_title, entry_kind, content (at most 120 characters), and timestamp. Text output works for fallback results. Other error statuses stop the command without a fallback.
Examples
verdictan history search --query "deployment error" --json
verdictan history search --query "timeout" --entry-kind chat --json
verdictan history search --query "budget" --agent-id bcb8904e-d692-42bd-a176-bc5d408405b4 --jsonverdictan history share
verdictan history share adds a user or team to one session. Only the session owner or an organization admin can manage members.
Usage
verdictan history share <session-id> (--with <user-id|email> | --with-team <team-id>) [--role collaborator|observer] [--json]Options
| Flag | Description |
|---|---|
<session-id> | Required. The session ID. |
--with <user-id|email> | User UUID or organization member email. An email lookup needs access to the organization user list. |
--with-team <team-id> | Team UUID. Use this or --with, not both. |
--role <collaborator|observer> | Member role. The default is collaborator. |
The CLI sends user_id or team_id to POST /v1. An email is resolved to a user ID before the write. An email that matches no member stops the command.
Examples
verdictan history share 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c --with 0e959678-8740-482b-890e-05aa61884664verdictan history replay
CLI 0.2.0 removes verdictan history replay. The API has no replay endpoint. The CLI rejects the command and tells you to use verdictan history export.
Usage
Export the session, and then send the requests again with your application client:
verdictan history export <session-id> --format jsonOptions
None. The command is removed. See the history export options.
Examples
verdictan history export 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c --format jsonThe requests that you send again are new requests. They can incur provider charges.
verdictan history stats
verdictan history stats reads all matching session pages and calculates counts locally. It does not call an aggregate stats endpoint.
Usage
verdictan history stats [--team-id <id>] [--agent-id <id>] [--since <rfc3339>] [--until <rfc3339>] [--json]Options
| Flag | Description |
|---|---|
--team-id <id> | Count only sessions for this team. |
--agent-id <id> | Count only sessions for this agent. |
--since <rfc3339> | Count only sessions with last_activity_at at or after this time. An invalid timestamp stops the command. |
--until <rfc3339> | Count only sessions with last_activity_at at or before this time. An invalid timestamp stops the command. |
The summary has total_sessions, total_entries, allowed_entries, blocked_entries, avg_session_length, top_agents, and top_models. Model counts use each session's last_model. The result does not claim token or cost totals, because the session records do not supply them.
Examples
verdictan history stats
verdictan history stats --agent-id bcb8904e-d692-42bd-a176-bc5d408405b4 --jsonverdictan history learn
verdictan history learn calls the supported session-condense API. It returns the server's summary, session ID, and entry count. Use --dry-run to inspect the source entries without creating a summary.
Usage
verdictan history learn [--bind-to-session <id>] [--team-id <id>] [--agent-id <id>] [--min-entry-count <n>] [--dry-run] [--json]Options
| Flag | Description |
|---|---|
--bind-to-session <id> | Use this session. Without this flag, the command picks the session with the latest last_activity_at on the first sessions page. |
--team-id <id> | Session discovery filter for one team. |
--agent-id <id> | Session discovery filter for one agent. |
--min-entry-count <n> | Minimum entry count passed to the API. |
--dry-run | Read the first 500 entries of the session and print a preview. The command sends no learn request. |
With --dry-run, text output prints the session ID and the number of entries fetched. JSON output also contains min_entry_count and the entries array.
Without --dry-run, the command sends POST /v1 with the optional min_entry_count. The API controls authorization and condensation. When discovery finds no session, the command stops with a clear error.
The API makes the summary with the History title model when the operator configures one. When the operator turns off History title generation, the API sends no session text to a model and returns a local summary of the user turns.
Examples
verdictan history learn --bind-to-session 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c --dry-run
verdictan history learn --agent-id bcb8904e-d692-42bd-a176-bc5d408405b4 --dry-run --jsonverdictan history condense
verdictan history condense builds an artifact from captured text, API summaries, or both. The default extract strategy works locally after it reads History. The condense and hybrid strategies request server summaries; the API controls how it creates them, as described under history learn.
Usage
verdictan history condense [--session-id <id> | --team-id <id> | --agent-id <id>] [OPTIONS]Options
| Flag | Description |
|---|---|
--session-id <id> | Condense this session. Without this flag, the command reads matching session pages, up to --max-sessions (default 50). |
--team-id <id> | Session filter for one team. |
--agent-id <id> | Session filter for one agent. |
--since <rfc3339> | Keep only sessions with last_activity_at at or after this time. |
--until <rfc3339> | Keep only sessions with last_activity_at at or before this time. |
--strategy <extract|condense|hybrid> | The default is extract. extract uses captured text; condense requests API summaries; hybrid combines both. |
--target-max-tokens <n> | Token budget. The CLI counts four characters for each token. The default is 1200. |
--allowed-only | Keep only entries with decision allowed. This is the default. |
--include-blocked | Include entries with all decisions. Cannot be combined with --allowed-only. |
--output <path> | Write the artifact JSON to this file. |
--dry-run | Print counts, not the artifact. |
The extract and hybrid strategies read the first 500 entries of each selected session. They use the History decision, request_payload, and response_payload fields to extract user and assistant text. The condense strategy requests API summaries instead. --dry-run reads source entries without requesting summaries. The token budget is an estimate, not a model tokenizer. If no eligible content exists, the command stops with an error. Use export for a complete session copy.
With --output, the command writes the artifact as JSON and does not print the artifact to standard output, including with --json. The artifact identifies its strategy, selected sessions, source counts, condensation settings, and content units.
Examples
verdictan history condense --session-id 7f92ff69-7b29-4f2d-a8bb-766c06e61d3c --dry-runLimits and failure behavior
list-sessionsreads up to its requested limit.statsreads all matching sessions.condensereads up to--max-sessions.get-sessionreads all entry pages with--include-entries.learn --dry-runand the entry-reading strategies ofcondenseread at most the first 500 entries per session. Useexportfor completeness checks.exportexits with an error and writes no file when pagination is incomplete or out of order.condensecontinues when it cannot read the entries of one session. It printswarning: could not fetch entries for session <id>: <error>to standard error.- The
scopevalue in text output is always-.
Retention
The regional History retention policy of the organization deletes sessions after their retention period. A gateway can also set a shorter retention for the entries that it writes:
- The gateway sends an optional
retention_daysvalue (an integer from 1 to 2555) when it creates a session and when it writes an entry. - An entry expires
retention_daysdays after capture. When the session and the entry both have a value, the shorter value applies. A session keeps the shortest value that it receives. - The data retention worker deletes expired entries. When it deletes the last entry of a session, it also deletes the session.
- The regional retention policy continues to apply. The shorter period deletes the data.
- Without
retention_days, the entries stay until the regional retention policy deletes the session. - The API rejects a value that is not an integer from 1 to 2555 with HTTP
422.
The session counters (entry_count, allowed_entry_count, and blocked_entry_count) count all entries that the gateway wrote. Retention does not decrease them.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
missing api token (set VERDICTAN_API_TOKEN or run `verdictan auth login`) | No token in the environment or the profile. | Set VERDICTAN_API_TOKEN, or run verdictan auth login. |
api authorization failed (403) | You do not have history:read and are not a member of the session. For search, you do not have the organization-level history:read. | Ask an administrator for history:read, or for session membership. |
api validation failed (422) on get-session or export | The session ID is not a UUID (history.invalid_id). | Copy the session_id from list-sessions. |
api validation failed (422) on list-sessions | --team-id or --agent-id is not a UUID. | Use the UUID of the team or agent. |
api request failed with status 404 on get-session or export | The session does not exist in your organization (history.not_found). | Check the session ID and the profile. |
verdictan history replay` has been removed: ... | The command is removed. The API has no History replay endpoint. | Run verdictan history export <session-id> --format json. Send the requests again through the gateway. |
--scope has been removed: ... | list-sessions, learn, condense, and stats do not accept --scope. The flag had no effect. | Remove the flag. Use --team-id or --agent-id to filter. |
--strategy has been removed from history learn: ... | learn does not accept --strategy, --previous-sessions-max, or --target-max-tokens. The API selects the strategy. | Remove the flag. |
invalid --since value: ... | The value is not an RFC 3339 timestamp. | Use a value such as 2026-09-01T00:00:00Z. |
search prints no results | No accessible captured content matched the query. | Check the filters and the capture settings for the session. |
history entries pagination ended after <n> entries, ... | The API returned fewer entries than the session reports. | Run export again. If it fails again, compare with get-session --json. |
Requirements
- Set
VERDICTAN_API_TOKEN, or sign in withverdictan auth login. - To read sessions across the organization, you need the
history:readpermission. Without it, you can read only the sessions where your user or one of your teams is a conversation member.searchalways needs the organization-levelhistory:readpermission. - Session, team, and agent IDs are UUIDs. The API rejects other values with HTTP
422.
Complete command reference
Select a command for its complete input table. Default input means the value used when that option is omitted.
A value marked Not set can still come from configuration or the environment, as described above.
Set uppercase variables in example templates to your own resource IDs and paths before use.
See CLI scripting for quoting, output streams, confirmation, and exit codes.
verdictan history list-sessions [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--team-id <TEAM_ID> | No | Not set | Team id filter |
--agent-id <AGENT_ID> | No | Not set | Agent id filter |
--tag <TAG> | No | Not set | Keep only sessions that have this tag |
--since <SINCE> | No | Not set | Include only sessions with last_activity_at after this RFC3339 timestamp |
--until <UNTIL> | No | Not set | Include only sessions with last_activity_at at or before this RFC3339 timestamp |
--limit <LIMIT> | No | 50 | Maximum number of sessions to display Use a nonnegative integer. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Result: Text lists sessions. JSON contains a sessions array.
Example template:
verdictan history list-sessionsverdictan history get-session [OPTIONS] --session-id <SESSION_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--session-id <SESSION_ID> | Yes | Not set | History session id |
--include-entries | No | false | Read every entry page, not only the first 500 entries This is a switch without a value. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Without --include-entries, the response contains the first entry page. With it, the CLI reads every entry page.
Result: Text is the session summary. JSON contains the session and returned entries.
Example template:
verdictan history get-session --session-id "$SESSION_ID"verdictan history learn [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--bind-to-session <BIND_TO_SESSION> | No | Not set | Condense this session id. Without it, use the session with the most recent activity that matches the filters |
--team-id <TEAM_ID> | No | Not set | Team id filter for session discovery |
--agent-id <AGENT_ID> | No | Not set | Agent id filter for session discovery |
--min-entry-count <MIN_ENTRY_COUNT> | No | Not set | Minimum session entry count for the API (API default: 10) Use an integer from 0 through 4294967295. |
--dry-run | No | false | Fetch the source entries and print a preview. Do not condense This is a switch without a value. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Without --bind-to-session, select the most recently active matching session. Dry-run previews up to 500 source entries without requesting condensation.
Result: Text or JSON reports the selected session and API condensation result, or the source preview in dry-run mode.
Example template:
verdictan history learnverdictan history condense [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--session-id <SESSION_ID> | No | Not set | Condense a specified session by id |
--team-id <TEAM_ID> | No | Not set | Team id filter |
--agent-id <AGENT_ID> | No | Not set | Agent id filter |
--since <SINCE> | No | Not set | Include only sessions with last activity after this RFC3339 timestamp |
--until <UNTIL> | No | Not set | Include only sessions with last activity at or before this RFC3339 timestamp |
--max-sessions <MAX_SESSIONS> | No | 50 | Maximum number of matching sessions to condense when --session-id is not set Use a nonnegative integer. |
--strategy <STRATEGY> | No | extract | extract uses local text. condense requests API summaries. hybrid combines summaries with local text. Values: extract, condense, hybrid. |
--target-max-tokens <TARGET_MAX_TOKENS> | No | 1200 | Target token budget Use an integer from 0 through 4294967295. |
--allowed-only | No | false | Use only entries with the decision allowed (the default) This is a switch without a value. Cannot be combined with --include-blocked. |
--include-blocked | No | false | Use entries with every decision, including blocked and escalated This is a switch without a value. |
--output <OUTPUT> | No | Not set | Write the condensed artifact to this path, not stdout |
--dry-run | No | false | Print counts without writing output This is a switch without a value. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Extract uses local text. Condense requests API summaries. Hybrid combines API summaries with local text. Dry-run reads source entries without requesting summaries. Output files contain the artifact JSON.
Result: Text is the summary when no output path is set. JSON is an artifact containing source, condensation, and units. Dry-run returns counts.
Example template:
verdictan history condenseverdictan history export [OPTIONS] <SESSION_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<SESSION_ID> | Yes | Not set | Session id to export |
--format <FORMAT> | No | markdown | Output format Values: markdown, json, txt. |
--output <OUTPUT> | No | Not set | Write to a file, not stdout |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
The command reads all entry pages and refuses incomplete, repeated, or out-of-order results. File output uses --output. Without it, the export goes to standard output.
Result: The selected markdown, json, or txt export on standard output, or at --output.
Example template:
verdictan history export "$SESSION_ID"verdictan history tag [OPTIONS] <SESSION_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<SESSION_ID> | Yes | Not set | Session id |
--tag <TAG> | No | Not set | Tag name to add. Repeat the flag to add more tags Repeat this input. |
--remove <REMOVE> | No | Not set | Tag name to remove. Repeat the flag to remove more tags Repeat this input. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Tags are added with --tag and removed with --remove. With neither option, the command reads the saved tags.
Result: Text prints the resulting tags. JSON contains a tags array.
Example template:
verdictan history tag "$SESSION_ID"verdictan history search [OPTIONS] --query <QUERY>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--query <QUERY> | Yes | Not set | Search query string |
--entry-kind <ENTRY_KIND> | No | Not set | Filter by entry type (for example, "user" or "assistant") |
--agent-id <AGENT_ID> | No | Not set | Filter by agent id |
--team-id <TEAM_ID> | No | Not set | Filter by team id |
--since <SINCE> | No | Not set | Only include results after this timestamp (RFC3339) |
--until <UNTIL> | No | Not set | Only include results before this timestamp (RFC3339) |
--limit <LIMIT> | No | 20 | Maximum number of results (1..=100) Use an integer from 0 through 4294967295. The command range is 1 through 100. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Result: Text lists matches. JSON contains the search result. Results are limited by --limit.
Example template:
verdictan history search --query "example"verdictan history share [OPTIONS] <SESSION_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<SESSION_ID> | Yes | Not set | Session id to share |
--with <WITH_USER> | No | Not set | User id or email to share with. An email resolves through the organization user list |
--with-team <WITH_TEAM> | No | Not set | Team id to share with |
--role <ROLE> | No | Not set | Member role: collaborator (default) or observer Values: collaborator, observer. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Supply exactly one of --with <WITH_USER>, --with-team <WITH_TEAM>.
Choose exactly one of --with and --with-team. Email lookup reads the organization user list. If lookup fails, supply the user ID.
Result: Text identifies the recipient and membership. JSON contains the membership response.
Example template:
verdictan history share "$SESSION_ID" --with "$USER_ID"verdictan history stats [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--team-id <TEAM_ID> | No | Not set | Filter by team id |
--agent-id <AGENT_ID> | No | Not set | Filter by agent id |
--since <SINCE> | No | Not set | Only include sessions with last activity after this timestamp (RFC3339) |
--until <UNTIL> | No | Not set | Only include sessions with last activity at or before this timestamp (RFC3339) |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Result: Text reports aggregate counts. JSON contains the locally calculated statistics.
Example template:
verdictan history statsNext steps
- Export evidence for a review: include a session export in an evidence package.
- verdictan agent: find the agent IDs for the
--agent-idfilters. - Permissions reference: check which roles grant
history:readandhistory:write. - CLI command groups: find related commands for the History workflow.