{"openapi":"3.0.0","info":{"title":"welinkin-ai","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health check","responses":{"200":{"description":"OK"}}}},"/agent":{"post":{"summary":"Run the agent synchronously","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","projectId","meetingId"],"properties":{"prompt":{"type":"string"},"projectId":{"type":"string"},"meetingId":{"type":"string","description":"Output meeting _id → result uploaded to CR-{meetingId}.docx"},"templateMeetingId":{"type":"string","description":"Source template meeting _id → downloads CR-{templateMeetingId}.docx. Defaults to meetingId."},"sessionId":{"type":"string"}}}}}},"responses":{"200":{"description":"Agent result","content":{"application/json":{"schema":{"type":"object","properties":{"output":{"type":"string"},"blobUrl":{"type":"string"},"sessionId":{"type":"string"},"costUsd":{"type":"number"},"durationMs":{"type":"number"}}}}}},"400":{"description":"Missing required field"}}}},"/agent/stream":{"post":{"summary":"Run the agent with Server-Sent Events streaming","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["prompt","projectId","meetingId"],"properties":{"prompt":{"type":"string"},"projectId":{"type":"string"},"meetingId":{"type":"string"},"templateMeetingId":{"type":"string"},"sessionId":{"type":"string"}}}}}},"responses":{"200":{"description":"SSE stream — events: message, done, error","content":{"text/event-stream":{}}},"400":{"description":"Missing required field"}}}}}}