Documentation Index
Fetch the complete documentation index at: https://mintlify.com/samkit511/SAW---Security-Analyst-Workspace/llms.txt
Use this file to discover all available pages before exploring further.
POST /assistant/request is the unified orchestration interface for SAW. It accepts three distinct request types — log triage, incident follow-up, and task management — and routes each through the appropriate agent workflow. Use this endpoint when you need fine-grained control over the request type, user context, or session state that /ingest-log does not expose.
Authentication
Include your API key in thex-api-key request header. The default key for local development is demo.
Request
HeadersAPI key for authentication. Requests without a valid key return
401 unauthorized.Determines which agent workflow to execute. Must be one of:
"log_triage"— analyze and classify a security log"incident_followup"— add context or notes to an existing incident"task_command"— create, complete, or list analyst tasks
Request-type-specific data. See the examples below for the expected shape of each type.
Identifier of the user or system submitting the request. Stored on the incident record and used for session scoping.
Optional session identifier for grouping related requests. When provided, the coordinator agent can maintain context across multiple calls in the same session.
Examples by request type
log_triage
Submits a raw or structured log for the full four-agent triage pipeline. Thepayload field accepts the same structured fields as /ingest-log.
incident_followup
Adds a follow-up message to an existing incident. TheRiskAgent re-evaluates whether further action is needed based on the message, and a task may be created.
task_command
Manages analyst tasks directly through the agent pipeline. Supports"create", "complete", and "list" actions.
task_command
Task operation to perform:
"create", "complete", or "list".Task title. Required when
action is "create".Detailed task description. Required when
action is "create".Links the task to a specific incident. Optional for
"create" and "list".Task priority. Accepted values:
"LOW", "MEDIUM", "HIGH".Response
On success the server returns200 with the full decorated agent result.
Unique request identifier prefixed with
req_.Identifier of the incident record associated with this request. For
incident_followup and task_command types, this is the incident ID passed in the payload."COMPLETED" if all agents ran without error. "DEGRADED" if an agent failure was caught mid-pipeline.Narrative summary list, one entry per agent that executed.
Per-agent outcome objects keyed by agent name. Each entry contains
status, step, message, and output.Full execution trace with stages for input normalization, log analysis, threat detection, risk assessment, ADK review, mitigation, and agent orchestration metadata.
Decorator metadata. See GET /latest for the full field list.
Error codes
| Status | Code | Description |
|---|---|---|
400 | invalid_request_type | The request_type is not "log_triage", "incident_followup", or "task_command". |
401 | unauthorized | The x-api-key header is missing or incorrect. |
413 | payload_too_large | The request body exceeds ASA_MAX_REQUEST_BYTES (default: 16 384 bytes). |
422 | invalid_assistant_payload | The request body is valid JSON but fails AssistantRequest schema validation. |
429 | rate_limited | This IP has exceeded 12 requests within the 60-second window. The response includes retry_after_seconds. |
503 | overloaded | The server has reached ASA_MAX_INFLIGHT (default: 8) concurrent requests. Retry after 1 second. |