{"authentication":{"header":"X-API-Key","method":"API Key","note":"All endpoints require X-API-Key header except /health and /docs"},"health_checks":{"GET /health":"Platform health (ato-api)","GET /matching/health":"Matching service health","GET /parsing/health":"Parsing service health","GET /webhook/health":"Email ingester health"},"service_info":{"base_url":"https://ato.{env}.gcp.voltasoftware.ai","description":"AI-powered email-to-order processing platform","name":"Anything to Order \u2014 ATO Platform","version":"2.0.0"},"services":{"api":{"description":"Platform management \u2014 environments, emails, knowledge base","endpoints":{"DELETE /api/chat/conversations/{id}":"Delete conversation","DELETE /api/emails/{id}":"Delete email","DELETE /api/environments/{id}":"Delete environment","DELETE /api/environments/{id}/products":"Clear all products","GET /api/chat/conversations":"List chat conversations","GET /api/chat/conversations/{id}":"Get conversation messages","GET /api/emails":"List emails (supports filtering and pagination)","GET /api/emails/{id}":"Get email details","GET /api/emails/{id}/attachments":"Get attachments with signed URLs","GET /api/emails/{id}/results":"Get processing results with attachments","GET /api/environments":"List environments","GET /api/environments/{id}":"Get environment details","GET /api/environments/{id}/knowledge-base/documents":"List documents","GET /api/environments/{id}/products/stats":"Get product stats","GET /api/environments/{id}/stats":"Get environment statistics","GET /api/environments/{id}/status":"Get environment status","POST /api/chat":"Send chat message (sync response)","POST /api/chat/stream":"Send chat message (SSE streaming)","POST /api/emails":"Create email record","POST /api/environments":"Create environment with Elasticsearch index","POST /api/environments/{id}/knowledge-base/documents":"Upload document","POST /api/environments/{id}/sync":"Sync products from platform","POST /api/inbox/process":"Process email through ADK agent","POST /api/validate-sender":"Validate if sender is authorized","PUT /api/emails/{id}":"Update email","PUT /api/environments/{id}":"Update environment"},"prefix":"/api"},"classify":{"description":"Email classification (Gemini EU via Alta)","endpoints":{"POST /api/classify":"Classify email intent"},"prefix":"/api"},"matching":{"description":"Product and customer matching","endpoints":{"GET /matching/health":"Matching service health check","POST /matching/product-matching":"Match parsed items to catalog products","POST /matching/prompt-to-order":"End-to-end: parse text + match products"},"prefix":"/matching"},"parsing":{"description":"Email classification (legacy)","endpoints":{"GET /parsing/health":"Parsing service health check","POST /parsing/classify":"Classify email (legacy \u2014 use /api/classify)"},"prefix":"/parsing"},"webhook":{"authentication":"ECDSA signature (X-Twilio-Email-Event-Webhook-Signature)","description":"Email ingestion (SendGrid inbound parse)","endpoints":{"GET /webhook/health":"Ingester service health check","POST /webhook/":"SendGrid inbound parse webhook"},"prefix":"/webhook"},"workflow":{"description":"Workflow AI generation (Gemini EU via Alta)","endpoints":{"POST /api/workflow/generate":"Generate workflow rule from natural language"},"prefix":"/api"}}}
