> 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/email.md).

# Email

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

> Creates a new email investigation, returning the ID. Optionally pass tenant\_union\_id (multi-tenant deployments) to scope the alert to a tenant union.

```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/email/investigation/create":{"post":{"operationId":"email_investigation_create_create","description":"Creates a new email investigation, returning the ID. Optionally pass tenant_union_id (multi-tenant deployments) to scope the alert to a tenant union.","tags":["email"],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"binary"},"tenant_union_id":{"type":"integer","nullable":true,"default":null},"origin_ticket_id":{"type":"string","nullable":true,"default":null},"origin_ticket_id_label":{"type":"string","nullable":true,"default":null},"origin_ticket_url":{"type":"string","nullable":true,"default":null},"is_forwarded":{"type":"boolean","default":false},"skip_forward_unwrap":{"type":"boolean","default":false}}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"number"}}}}},"description":"Creation success"},"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"},"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"}}}}}}
```
