> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/api/investigation.md).

# Investigation

## GET /app/api/v1/investigation

> List investigations (with optional filtering, sorting, and search)\
> \
> Returns a paginated list of investigations. By default, only completed investigations\
> (state='success') are returned. Use query parameters to filter by state, outcomes,\
> priorities, date ranges, and more.<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"PaginatedInvestigationList":{"type":"object","properties":{"count":{"type":"integer","description":"Total number of investigations"},"next":{"type":"string","format":"uri","nullable":true,"description":"URL to next page of results"},"previous":{"type":"string","format":"uri","nullable":true,"description":"URL to previous page of results"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Investigation"}}},"required":["count","next","previous","results"]},"Investigation":{"oneOf":[{"$ref":"#/components/schemas/InvestigationFull"},{"$ref":"#/components/schemas/InvestigationLight"}]},"InvestigationFull":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"inv_url":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"alert":{"$ref":"#/components/schemas/ScriptVarSerializer_Alert"},"start_time":{"type":"string","format":"date-time","nullable":true},"status":{"$ref":"#/components/schemas/InvestigationStatusEnum"},"canceled":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/CanceledEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"error_msg":{"type":"string","nullable":true},"generated_time":{"type":"string","format":"date-time","nullable":true},"exec_summary":{"type":"string","nullable":true},"alert_summary":{"type":"string","nullable":true},"attack_surface":{"type":"string","nullable":true},"mitre_tactic":{"type":"string","nullable":true},"priority":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/PriorityEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"outcome":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/InvestigationOutcomeEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"conclusion":{"type":"string","readOnly":true,"nullable":true},"conclusion_summary":{"type":"string","nullable":true},"insight_tags":{},"findings":{},"key_findings":{},"findings_ranking":{},"recommended_remediations":{},"related_alert_hypothesis":{"nullable":true},"interview_proposals":{},"custom_outcome":{"type":"object","additionalProperties":{},"nullable":true,"readOnly":true},"feedback":{"$ref":"#/components/schemas/ScriptVarSerializer_InvestigationFeedback"},"remediation_action_runs":{"type":"array","items":{"$ref":"#/components/schemas/ScriptVarSerializer_RemediationActionRun"},"readOnly":true},"ignored_for_investigation_id":{"type":"integer","nullable":true,"readOnly":true}},"required":["alert","conclusion","created_at","custom_outcome","feedback","id","ignored_for_investigation_id","inv_url","remediation_action_runs","updated_at"]},"ScriptVarSerializer_Alert":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"schema_key":{"type":"string"},"coalesce_key":{"type":"string","nullable":true},"direct_source_label":{"type":"string"},"proxy_source_label":{"type":"string","nullable":true},"origin_integration":{"type":"string","nullable":true},"origin_ticket_id":{"type":"string","nullable":true},"origin_ticket_id_label":{"type":"string","nullable":true},"origin_ticket_url":{"type":"string","nullable":true},"start_time":{"type":"string","format":"date-time","nullable":true},"create_time":{"type":"string","format":"date-time"},"severity":{"type":"string","nullable":true},"alert_type":{"type":"string"},"title":{"type":"string"},"original_title":{"type":"string"},"entities":{},"assets":{},"custom_fields":{},"raw_alert_content":{"type":"string"},"tenant_union":{"$ref":"#/components/schemas/ScriptVarSerializer_TenantUnion"},"tenant_id":{"type":"string","nullable":true},"tenant_label":{"type":"string","nullable":true},"tenant_integration_key":{"type":"string","nullable":true}},"required":["alert_type","create_time","created_at","direct_source_label","id","raw_alert_content","schema_key","tenant_union","title","updated_at"]},"ScriptVarSerializer_TenantUnion":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"display_name":{"type":"string"},"lookup_dict":{}},"required":["created_at","display_name","id","updated_at"]},"InvestigationStatusEnum":{"enum":["not_asked","loading","success","error"],"type":"string","description":"* `not_asked` - not_asked\n* `loading` - loading\n* `success` - success\n* `error` - error"},"CanceledEnum":{"enum":["CANCEL_MANUAL","CANCEL_THRESHOLD"],"type":"string","description":"* `CANCEL_MANUAL` - CANCEL_MANUAL\n* `CANCEL_THRESHOLD` - CANCEL_THRESHOLD"},"NullEnum":{"enum":[null]},"PriorityEnum":{"enum":["informational","notable","urgent"],"type":"string","description":"* `informational` - Informational\n* `notable` - Notable\n* `urgent` - Urgent"},"InvestigationOutcomeEnum":{"enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","INCOMPLETE","IGNORED"],"type":"string","description":"* `COMPLETED_BREACHED_CONFIRMED` - COMPLETED_BREACHED_CONFIRMED\n* `COMPLETED_BREACHED_SUSPICIOUS` - COMPLETED_BREACHED_SUSPICIOUS\n* `COMPLETED_FALSE_ALERT` - COMPLETED_FALSE_ALERT\n* `INCOMPLETE` - INCOMPLETE\n* `IGNORED` - IGNORED"},"ScriptVarSerializer_InvestigationFeedback":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"status":{"$ref":"#/components/schemas/InvestigationFeedbackStatusEnum"},"priority":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/PriorityEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"outcome":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/InvestigationFeedbackOutcomeEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"conclusion":{"type":"string","readOnly":true,"nullable":true},"conclusion_summary":{"type":"string","nullable":true},"findings":{},"key_findings":{"nullable":true},"findings_ranking":{"nullable":true},"insight_tags":{"nullable":true},"outcome_note":{"type":"string","nullable":true},"remediations_done":{}},"required":["conclusion","created_at","id","updated_at"]},"InvestigationFeedbackStatusEnum":{"enum":["dz_new","dz_in_progress","dz_on_hold","dz_closed"],"type":"string","description":"* `dz_new` - New\n* `dz_in_progress` - In Progress\n* `dz_on_hold` - On Hold\n* `dz_closed` - Closed"},"InvestigationFeedbackOutcomeEnum":{"enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","INCOMPLETE","IGNORED"],"type":"string","description":"* `COMPLETED_BREACHED_CONFIRMED` - Malicious\n* `COMPLETED_BREACHED_SUSPICIOUS` - Suspicious\n* `COMPLETED_FALSE_ALERT` - Benign\n* `INCOMPLETE` - Inconclusive\n* `IGNORED` - Ignored"},"ScriptVarSerializer_RemediationActionRun":{"type":"object","properties":{"remediation_action":{"$ref":"#/components/schemas/ScriptVarSerializer_RemediationAction"},"entity":{"type":"string"}},"required":["remediation_action"]},"ScriptVarSerializer_RemediationAction":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"InvestigationLight":{"type":"object","description":"A lightweight investigation serializer that only picks up certain fields.\n\nNotably, we exclude:\n- no alert\n- no feedback\n- no findings\n\nOn the contrary, we *include* custom_outcome via annotation","properties":{"id":{"type":"integer","readOnly":true},"status":{"$ref":"#/components/schemas/InvestigationStatusEnum"},"error_msg":{"type":"string","nullable":true},"alert_summary":{"type":"string","nullable":true},"attack_surface":{"type":"string","nullable":true},"mitre_tactic":{"type":"string","nullable":true},"priority":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/PriorityEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"conclusion":{"type":"string","readOnly":true,"nullable":true},"conclusion_summary":{"type":"string","nullable":true},"insight_tags":{},"key_findings":{},"recommended_remediations":{},"inv_url":{"type":"string","readOnly":true},"custom_outcome":{"type":"object","additionalProperties":{},"nullable":true,"readOnly":true},"detection_objective":{"type":"string","nullable":true}},"required":["conclusion","custom_outcome","id","inv_url"]}}},"paths":{"/app/api/v1/investigation":{"get":{"operationId":"investigations_list_external","description":"List investigations (with optional filtering, sorting, and search)\n\nReturns a paginated list of investigations. By default, only completed investigations\n(state='success') are returned. Use query parameters to filter by state, outcomes,\npriorities, date ranges, and more.\n","parameters":[{"in":"query","name":"alert_create_from","schema":{"type":"string"},"description":"Filter by alert creation time (from). ISO 8601 format"},{"in":"query","name":"alert_create_until","schema":{"type":"string"},"description":"Filter by alert creation time (until). ISO 8601 format"},{"in":"query","name":"alert_start_from","schema":{"type":"string"},"description":"Filter by alert start time (from). ISO 8601 format (e.g., 2024-01-01 or 2024-01-01T00:00:00Z)"},{"in":"query","name":"alert_start_until","schema":{"type":"string"},"description":"Filter by alert start time (until). ISO 8601 format"},{"in":"query","name":"alert_tenants","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert tenant name (can be repeated)"},{"in":"query","name":"alert_types","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert type/handler key (can be repeated)"},{"in":"query","name":"assignees","schema":{"type":"array","items":{"type":"integer"}},"description":"Filter by investigation feedback assignee user ID (can be repeated)"},{"in":"query","name":"attack_surfaces","schema":{"type":"array","items":{"type":"string","enum":["Active Directory","Cloud Infrastructure","Endpoint","Identity","Kubernetes","Network","Phishing","SaaS"]}},"description":"Filter by attack surface (can be repeated)"},{"in":"query","name":"containment_action_statuses","schema":{"type":"array","items":{"type":"string","enum":["disabled","failed","ready","running","success","undo_failed","undoing"]}},"description":"Filter by latest containment action run status per investigation (can be repeated)"},{"in":"query","name":"direct_source_labels","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by alert source label (can be repeated)"},{"in":"query","name":"feedback_updated_from","schema":{"type":"string"},"description":"Filter by feedback last updated time (from). ISO 8601 format"},{"in":"query","name":"feedback_updated_until","schema":{"type":"string"},"description":"Filter by feedback last updated time (until). ISO 8601 format"},{"in":"query","name":"insight_tag_names","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by insight tag name (can be repeated)"},{"in":"query","name":"interview_statuses","schema":{"type":"array","items":{"type":"string","enum":["active","approved","canceled","declined","failed","finished","finished_with_referral","pending","timed_out"]}},"description":"Filter by interview status (can be repeated)"},{"in":"query","name":"inv_complete_from","schema":{"type":"string"},"description":"Filter by investigation completion time (from). ISO 8601 format"},{"in":"query","name":"inv_complete_until","schema":{"type":"string"},"description":"Filter by investigation completion time (until). ISO 8601 format"},{"in":"query","name":"investigation_state","schema":{"type":"string","enum":["error","loading","not_asked","success"]},"description":"Filter by investigation state. Valid values: not_asked (queued), loading (running), success (complete), error (stopped). Defaults to 'success'."},{"in":"query","name":"light","schema":{"type":"boolean","default":false},"description":"If true, returns a lightweight response with fewer fields (no alert, no findings)"},{"in":"query","name":"limit","schema":{"type":"integer"},"description":"Number of results per page"},{"in":"query","name":"mitre_tactics","schema":{"type":"array","items":{"type":"string","enum":["Collection","Command and Control","Credential Access","Defense Evasion","Discovery","Execution","Exfiltration","Impact","Initial Access","Lateral Movement","Persistence","Privilege Escalation"]}},"description":"Filter by MITRE ATT&CK tactic (can be repeated)"},{"in":"query","name":"offset","schema":{"type":"integer"},"description":"Number of results to skip"},{"in":"query","name":"outcomes","schema":{"type":"array","items":{"type":"string","enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","IGNORED","INCOMPLETE"]}},"description":"Filter by investigation outcome/conclusion (can be repeated)"},{"in":"query","name":"priorities","schema":{"type":"array","items":{"type":"string","enum":["informational","notable","urgent"]}},"description":"Filter by investigation priority (can be repeated)"},{"in":"query","name":"priority_statuses","schema":{"type":"array","items":{"type":"string"}},"description":"Filter by priority status (can be repeated)"},{"in":"query","name":"search","schema":{"type":"string"},"description":"Free-text search across investigation fields"},{"in":"query","name":"sort_dir","schema":{"type":"string","enum":["asc","desc"]},"description":"Sort direction. Defaults to 'desc'. 'assigned_to_me' and 'unassigned' always put their group first."},{"in":"query","name":"sort_type","schema":{"type":"string","enum":["activity","alert_create","alert_source","alert_title","alert_type","assigned_to_me","assignee","feedback_status","investigation_create","outcome","priority_status","stopped_reason","unassigned"]},"description":"Sort field. Defaults to 'alert_create'. 'feedback_status' asc follows New, In Progress, On Hold, Closed. 'assignee' sorts by display name. 'assigned_to_me' puts the API-key owner first; 'unassigned' puts investigations without an assignee first."},{"in":"query","name":"stopped_reasons","schema":{"type":"array","items":{"type":"string","enum":["CANCEL_MANUAL","CANCEL_THRESHOLD","ERROR"]}},"description":"Filter by stopped reason for error/canceled investigations (can be repeated)"},{"in":"query","name":"tenant_id","schema":{"type":"string"},"description":"Filter by tenant ID"},{"in":"query","name":"tenant_integration_key","schema":{"type":"string"},"description":"Filter by tenant integration key"},{"in":"query","name":"ticket_id","schema":{"type":"string"},"description":"Exact, case-insensitive match on the vendor alert/ticket ID. Matches either the alert's origin ticket ID or its display label; surrounding whitespace is ignored. Unlike `search`, substrings do not match. May return multiple investigations (e.g. reinvestigations)."},{"in":"query","name":"user_statuses","schema":{"type":"array","items":{"type":"string","enum":["dz_closed","dz_in_progress","dz_new","dz_on_hold"]}},"description":"Filter by user feedback status (can be repeated)"}],"tags":["investigation"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedInvestigationList"}}},"description":"<strong>Paginated list of investigations</strong>\n<br><br>\nReturns a paginated list of investigations. By default, only completed investigations\n(state='success') are returned. Use query parameters to filter by state, outcomes,\npriorities, date ranges, and more.\n<br><br>\nUse <code>next</code> and <code>previous</code>\nURLs in the response for easy page navigation.\n<br><br>\nIf <code>light=true</code>, returns a subset of fields (InvestigationLight schema).\n"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## GET /app/api/v1/investigation/{investigation\_id}

> Returns an alert investigation

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"Investigation":{"oneOf":[{"$ref":"#/components/schemas/InvestigationFull"},{"$ref":"#/components/schemas/InvestigationLight"}]},"InvestigationFull":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"inv_url":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"alert":{"$ref":"#/components/schemas/ScriptVarSerializer_Alert"},"start_time":{"type":"string","format":"date-time","nullable":true},"status":{"$ref":"#/components/schemas/InvestigationStatusEnum"},"canceled":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/CanceledEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"error_msg":{"type":"string","nullable":true},"generated_time":{"type":"string","format":"date-time","nullable":true},"exec_summary":{"type":"string","nullable":true},"alert_summary":{"type":"string","nullable":true},"attack_surface":{"type":"string","nullable":true},"mitre_tactic":{"type":"string","nullable":true},"priority":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/PriorityEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"outcome":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/InvestigationOutcomeEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"conclusion":{"type":"string","readOnly":true,"nullable":true},"conclusion_summary":{"type":"string","nullable":true},"insight_tags":{},"findings":{},"key_findings":{},"findings_ranking":{},"recommended_remediations":{},"related_alert_hypothesis":{"nullable":true},"interview_proposals":{},"custom_outcome":{"type":"object","additionalProperties":{},"nullable":true,"readOnly":true},"feedback":{"$ref":"#/components/schemas/ScriptVarSerializer_InvestigationFeedback"},"remediation_action_runs":{"type":"array","items":{"$ref":"#/components/schemas/ScriptVarSerializer_RemediationActionRun"},"readOnly":true},"ignored_for_investigation_id":{"type":"integer","nullable":true,"readOnly":true}},"required":["alert","conclusion","created_at","custom_outcome","feedback","id","ignored_for_investigation_id","inv_url","remediation_action_runs","updated_at"]},"ScriptVarSerializer_Alert":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"schema_key":{"type":"string"},"coalesce_key":{"type":"string","nullable":true},"direct_source_label":{"type":"string"},"proxy_source_label":{"type":"string","nullable":true},"origin_integration":{"type":"string","nullable":true},"origin_ticket_id":{"type":"string","nullable":true},"origin_ticket_id_label":{"type":"string","nullable":true},"origin_ticket_url":{"type":"string","nullable":true},"start_time":{"type":"string","format":"date-time","nullable":true},"create_time":{"type":"string","format":"date-time"},"severity":{"type":"string","nullable":true},"alert_type":{"type":"string"},"title":{"type":"string"},"original_title":{"type":"string"},"entities":{},"assets":{},"custom_fields":{},"raw_alert_content":{"type":"string"},"tenant_union":{"$ref":"#/components/schemas/ScriptVarSerializer_TenantUnion"},"tenant_id":{"type":"string","nullable":true},"tenant_label":{"type":"string","nullable":true},"tenant_integration_key":{"type":"string","nullable":true}},"required":["alert_type","create_time","created_at","direct_source_label","id","raw_alert_content","schema_key","tenant_union","title","updated_at"]},"ScriptVarSerializer_TenantUnion":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"display_name":{"type":"string"},"lookup_dict":{}},"required":["created_at","display_name","id","updated_at"]},"InvestigationStatusEnum":{"enum":["not_asked","loading","success","error"],"type":"string","description":"* `not_asked` - not_asked\n* `loading` - loading\n* `success` - success\n* `error` - error"},"CanceledEnum":{"enum":["CANCEL_MANUAL","CANCEL_THRESHOLD"],"type":"string","description":"* `CANCEL_MANUAL` - CANCEL_MANUAL\n* `CANCEL_THRESHOLD` - CANCEL_THRESHOLD"},"NullEnum":{"enum":[null]},"PriorityEnum":{"enum":["informational","notable","urgent"],"type":"string","description":"* `informational` - Informational\n* `notable` - Notable\n* `urgent` - Urgent"},"InvestigationOutcomeEnum":{"enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","INCOMPLETE","IGNORED"],"type":"string","description":"* `COMPLETED_BREACHED_CONFIRMED` - COMPLETED_BREACHED_CONFIRMED\n* `COMPLETED_BREACHED_SUSPICIOUS` - COMPLETED_BREACHED_SUSPICIOUS\n* `COMPLETED_FALSE_ALERT` - COMPLETED_FALSE_ALERT\n* `INCOMPLETE` - INCOMPLETE\n* `IGNORED` - IGNORED"},"ScriptVarSerializer_InvestigationFeedback":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"status":{"$ref":"#/components/schemas/InvestigationFeedbackStatusEnum"},"priority":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/PriorityEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"outcome":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/InvestigationFeedbackOutcomeEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"conclusion":{"type":"string","readOnly":true,"nullable":true},"conclusion_summary":{"type":"string","nullable":true},"findings":{},"key_findings":{"nullable":true},"findings_ranking":{"nullable":true},"insight_tags":{"nullable":true},"outcome_note":{"type":"string","nullable":true},"remediations_done":{}},"required":["conclusion","created_at","id","updated_at"]},"InvestigationFeedbackStatusEnum":{"enum":["dz_new","dz_in_progress","dz_on_hold","dz_closed"],"type":"string","description":"* `dz_new` - New\n* `dz_in_progress` - In Progress\n* `dz_on_hold` - On Hold\n* `dz_closed` - Closed"},"InvestigationFeedbackOutcomeEnum":{"enum":["COMPLETED_BREACHED_CONFIRMED","COMPLETED_BREACHED_SUSPICIOUS","COMPLETED_FALSE_ALERT","INCOMPLETE","IGNORED"],"type":"string","description":"* `COMPLETED_BREACHED_CONFIRMED` - Malicious\n* `COMPLETED_BREACHED_SUSPICIOUS` - Suspicious\n* `COMPLETED_FALSE_ALERT` - Benign\n* `INCOMPLETE` - Inconclusive\n* `IGNORED` - Ignored"},"ScriptVarSerializer_RemediationActionRun":{"type":"object","properties":{"remediation_action":{"$ref":"#/components/schemas/ScriptVarSerializer_RemediationAction"},"entity":{"type":"string"}},"required":["remediation_action"]},"ScriptVarSerializer_RemediationAction":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"InvestigationLight":{"type":"object","description":"A lightweight investigation serializer that only picks up certain fields.\n\nNotably, we exclude:\n- no alert\n- no feedback\n- no findings\n\nOn the contrary, we *include* custom_outcome via annotation","properties":{"id":{"type":"integer","readOnly":true},"status":{"$ref":"#/components/schemas/InvestigationStatusEnum"},"error_msg":{"type":"string","nullable":true},"alert_summary":{"type":"string","nullable":true},"attack_surface":{"type":"string","nullable":true},"mitre_tactic":{"type":"string","nullable":true},"priority":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/PriorityEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"conclusion":{"type":"string","readOnly":true,"nullable":true},"conclusion_summary":{"type":"string","nullable":true},"insight_tags":{},"key_findings":{},"recommended_remediations":{},"inv_url":{"type":"string","readOnly":true},"custom_outcome":{"type":"object","additionalProperties":{},"nullable":true,"readOnly":true},"detection_objective":{"type":"string","nullable":true}},"required":["conclusion","custom_outcome","id","inv_url"]}}},"paths":{"/app/api/v1/investigation/{investigation_id}":{"get":{"operationId":"investigation_retrieve_external","description":"Returns an alert investigation","parameters":[{"in":"path","name":"investigation_id","schema":{"type":"string"},"required":true},{"in":"query","name":"light","schema":{"type":"boolean","default":false},"description":"If true, returns a lightweight response with fewer fields (no alert, no findings)"}],"tags":["investigation"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Investigation"}}},"description":"Investigation data object. For progress: <code>investigation.status=</code>\n<ul>\n  <li>\n      <code>not_asked</code> : queued\n  </li>\n  <li>\n      <code>loading</code> : running AI analyst\n  </li>\n  <li>\n      <code>success</code> : AI analyst finished with result\n  </li>\n  <li>\n      <code>error</code> : AI analyst finished with error\n      — See <code>investigation.error_msg</code>\n  </li>\n</ul>\n<br><br>\nIf <code>light=true</code>, returns a subset of fields (InvestigationLight schema).\n"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## GET /app/api/v1/investigation/{investigation\_id}/evidence-data/{evidence\_data\_id}

> Returns the requested evidence data for a specific investigation.<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"EvidenceData":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"data":{"type":"string"},"mime_type":{"type":"string","nullable":true},"investigation":{"type":"integer"}},"required":["created_at","data","id","investigation","updated_at"]}}},"paths":{"/app/api/v1/investigation/{investigation_id}/evidence-data/{evidence_data_id}":{"get":{"operationId":"investigation_evidence_data_retrieve","description":"Returns the requested evidence data for a specific investigation.\n","parameters":[{"in":"path","name":"evidence_data_id","schema":{"type":"integer"},"description":"The evidence data ID","required":true},{"in":"path","name":"investigation_id","schema":{"type":"integer"},"description":"The investigation ID","required":true}],"tags":["investigation"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceData"}}},"description":"Evidence data object"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## POST /app/api/v1/investigation/{investigation\_id}/queue-priority

> Set queue\_priority for a queued investigation. Omit queue\_priority from the body (or pass null) to bump to top; pass 0 to return to default queue order.

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/app/api/v1/investigation/{investigation_id}/queue-priority":{"post":{"operationId":"investigation_queue_priority_create","description":"Set queue_priority for a queued investigation. Omit queue_priority from the body (or pass null) to bump to top; pass 0 to return to default queue order.","parameters":[{"in":"path","name":"investigation_id","schema":{"type":"integer"},"description":"The investigation ID","required":true}],"tags":["investigation"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"queue_priority":{"type":"number","nullable":true,"description":"Priority value. Omit or null to bump to top (server computes max + gap), 0 to return to default queue order."}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"The investigation ID"},"queue_priority":{"type":"number","description":"The new queue_priority value"}}}}},"description":"Priority updated"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## POST /app/api/v1/investigation/create

> Creates a new alert investigation, returning \<code>investigation\_id\</code>\
> \<br>\<br>\
> \<i>Returns existing id if alert already exists (unless \<code>force\_reinvestigation=True\</code>)\</i>\
> \<br>\<br>\
> \<strong>Then:\</strong> Use \<code>GET /app/api/v1/investigation/{investigation\_id}\</code> for updates<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/app/api/v1/investigation/create":{"post":{"operationId":"investigation_create_create","description":"Creates a new alert investigation, returning <code>investigation_id</code>\n<br><br>\n<i>Returns existing id if alert already exists (unless <code>force_reinvestigation=True</code>)</i>\n<br><br>\n<strong>Then:</strong> Use <code>GET /app/api/v1/investigation/{investigation_id}</code> for updates\n","tags":["investigation"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"schema_key":{"type":"string"},"raw_alert_content":{"type":"object"},"force_reinvestigation":{"type":"boolean","default":false},"tenant_union_id":{"type":"number","nullable":true,"default":null}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"investigation_id":{"type":"number"}}}}},"description":"Existing investigation found"},"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"investigation_id":{"type":"number"}}}}},"description":"New investigation created"},"202":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"request_id":{"type":"string"}}}}},"description":"Accepted but not investigated (global alert filter policy)"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"422":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"},"skip_reason":{"type":"string"}}}}},"description":"Alert skipped due to missing data (e.g., propagation delay)"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## POST /app/api/v1/investigation/create/custom

> Request body = arbitrary alert JSON to be parsed & investigated.\
> \<br>\<br>\
> The system uses AI to extract metadata (title, timestamps, ticket info, etc.) from the alert JSON you provide.\
> You can optionally include a \<code>dz\_metadata\</code> object to override or supplement the AI-extracted values.\
> \<br>\<br>\
> \<strong>Optional \<code>dz\_metadata\</code> fields:\</strong>\
> \<table style="border-collapse: collapse; margin-top: 8px;">\
> &#x20;   \<tr>\<th style="text-align: left; padding: 4px 12px 4px 0;">Field\</th>\<th style="text-align: left; padding: 4px 12px;">Type\</th>\<th style="text-align: left; padding: 4px 12px;">Description\</th>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>title\</code>\</td>\<td style="padding: 4px 12px;">string\</td>\<td style="padding: 4px 12px;">Override the AI-generated alert title\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>alert\_type\</code>\</td>\<td style="padding: 4px 12px;">string\</td>\<td style="padding: 4px 12px;">Override the AI-detected alert type\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>coalesce\_key\</code>\</td>\<td style="padding: 4px 12px;">string\</td>\<td style="padding: 4px 12px;">Key for grouping duplicate alerts (default: hash of alert content)\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>create\_time\</code>\</td>\<td style="padding: 4px 12px;">string (ISO 8601)\</td>\<td style="padding: 4px 12px;">Alert creation timestamp (default: current time)\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>start\_time\</code>\</td>\<td style="padding: 4px 12px;">string (ISO 8601)\</td>\<td style="padding: 4px 12px;">Alert start timestamp\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>origin\_ticket\_id\</code>\</td>\<td style="padding: 4px 12px;">string\</td>\<td style="padding: 4px 12px;">Ticket/alert ID from the originating system\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>origin\_ticket\_url\</code>\</td>\<td style="padding: 4px 12px;">string\</td>\<td style="padding: 4px 12px;">URL to the ticket/alert in the originating system\</td>\</tr>\
> &#x20;   \<tr>\<td style="padding: 4px 12px 4px 0;">\<code>force\_investigate\</code>\</td>\<td style="padding: 4px 12px;">boolean\</td>\<td style="padding: 4px 12px;">If true, bypass the "not a valid security alert" classification and investigate anyway\</td>\</tr>\
> \</table>\
> \<br>\
> Response = \<code>investigation\_id\</code> if an investigation is created or found,\
> or \<code>message\</code> (and optionally \<code>skip\_reason\</code>) if the alert was accepted but not investigated\
> \<br>\<br>\
> \<i>Returns existing id if alert already exists (unless \<code>?force\_reinvestigation=True\</code>)\</i>\
> \<br>\<br>\
> \<strong>Then:\</strong> Use \<code>GET /app/api/v1/investigation/{investigation\_id}\</code> for updates<br>

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/app/api/v1/investigation/create/custom":{"post":{"operationId":"investigation_create_custom_create","description":"Request body = arbitrary alert JSON to be parsed & investigated.\n<br><br>\nThe system uses AI to extract metadata (title, timestamps, ticket info, etc.) from the alert JSON you provide.\nYou can optionally include a <code>dz_metadata</code> object to override or supplement the AI-extracted values.\n<br><br>\n<strong>Optional <code>dz_metadata</code> fields:</strong>\n<table style=\"border-collapse: collapse; margin-top: 8px;\">\n    <tr><th style=\"text-align: left; padding: 4px 12px 4px 0;\">Field</th><th style=\"text-align: left; padding: 4px 12px;\">Type</th><th style=\"text-align: left; padding: 4px 12px;\">Description</th></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>title</code></td><td style=\"padding: 4px 12px;\">string</td><td style=\"padding: 4px 12px;\">Override the AI-generated alert title</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>alert_type</code></td><td style=\"padding: 4px 12px;\">string</td><td style=\"padding: 4px 12px;\">Override the AI-detected alert type</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>coalesce_key</code></td><td style=\"padding: 4px 12px;\">string</td><td style=\"padding: 4px 12px;\">Key for grouping duplicate alerts (default: hash of alert content)</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>create_time</code></td><td style=\"padding: 4px 12px;\">string (ISO 8601)</td><td style=\"padding: 4px 12px;\">Alert creation timestamp (default: current time)</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>start_time</code></td><td style=\"padding: 4px 12px;\">string (ISO 8601)</td><td style=\"padding: 4px 12px;\">Alert start timestamp</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>origin_ticket_id</code></td><td style=\"padding: 4px 12px;\">string</td><td style=\"padding: 4px 12px;\">Ticket/alert ID from the originating system</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>origin_ticket_url</code></td><td style=\"padding: 4px 12px;\">string</td><td style=\"padding: 4px 12px;\">URL to the ticket/alert in the originating system</td></tr>\n    <tr><td style=\"padding: 4px 12px 4px 0;\"><code>force_investigate</code></td><td style=\"padding: 4px 12px;\">boolean</td><td style=\"padding: 4px 12px;\">If true, bypass the \"not a valid security alert\" classification and investigate anyway</td></tr>\n</table>\n<br>\nResponse = <code>investigation_id</code> if an investigation is created or found,\nor <code>message</code> (and optionally <code>skip_reason</code>) if the alert was accepted but not investigated\n<br><br>\n<i>Returns existing id if alert already exists (unless <code>?force_reinvestigation=True</code>)</i>\n<br><br>\n<strong>Then:</strong> Use <code>GET /app/api/v1/investigation/{investigation_id}</code> for updates\n","parameters":[{"in":"query","name":"force_reinvestigation","schema":{"type":"boolean"},"description":"Force reinvestigation"},{"in":"query","name":"tenant_union_id","schema":{"type":"integer"},"description":"Tenant union ID"}],"tags":["investigation"],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","properties":{"investigation_id":{"type":"number"}}}}},"description":"Existing investigation found"},"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"investigation_id":{"type":"number"}}}}},"description":"New investigation created"},"202":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"skip_reason":{"type":"string"},"request_id":{"type":"string"}}}}},"description":"Accepted but not investigated (classifier judged not a security alert, or global alert filter policy)"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"413":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"},"skip_reason":{"type":"string"}}}}},"description":"Content Too Large"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```
