---
title: "Extract calendar events from text via processor (server-side proxy)"
method: POST
path: "/api/chat/attachments/extract-events"
tags: ["chat"]
---

# Extract calendar events from text via processor (server-side proxy)

`POST /api/chat/attachments/extract-events`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/api/chat/attachments/extract-events`
- Auth: none declared

## Request body

- ExtractEventsDto
  - `text_content` string, required: Raw text to scan for calendar events
  - `document_id` string: Optional correlation id (processor may ignore; not persisted by Nest)
  - `timezone` string
  - `include_past_events` boolean
  - `confidence_threshold` number
  - `max_events` number

## Response `200`

Processor event extraction response

## Other responses

- `400`: Validation error
- `502`: Processor unreachable or error

---

[API](https://skmtc.dev/opencase/apis/opencase-backend-api.md) · [All operations](https://skmtc.dev/opencase/apis/opencase-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opencase/apis/opencase-backend-api/revisions/c66ef2d8dc00?raw)
