{"openapi":"3.0.0","info":{"title":"Syntra API","description":"API da plataforma Syntra - Trabalhador Digital para Empresas","version":"1.0.0","contact":{"name":"Syntra Support","email":"suporte@getsyntra.com.br"}},"servers":[{"url":"https://getsyntra.com.br","description":"Produção"},{"url":"http://localhost:3007","description":"Desenvolvimento"}],"paths":{"/api/chat":{"post":{"tags":["Chat"],"summary":"Enviar comando para chat","description":"Envia um comando em linguagem natural e retorna a resposta do agente.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"command":{"type":"string","description":"Comando em linguagem natural"},"preferredAgentId":{"type":"string","description":"ID do agente preferido (opcional)"}},"required":["command"]}}}},"responses":{"200":{"description":"Resposta do agente"},"401":{"description":"Sessão ausente"},"429":{"description":"Muitas requisições"}}}},"/api/agents/execute":{"post":{"tags":["Agentes"],"summary":"Executar agente","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string","example":"auto"},"input":{"type":"string"}},"required":["input"]}}}},"responses":{"200":{"description":"Tarefa criada"}}}},"/api/agents/approve":{"post":{"tags":["Agentes"],"summary":"Aprovar/rejeitar tarefa","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"taskId":{"type":"string"},"action":{"type":"string","enum":["approve","reject"]}},"required":["taskId","action"]}}}},"responses":{"200":{"description":"Ação executada"}}}},"/api/pix-static":{"post":{"tags":["Pagamentos"],"summary":"Gerar QR Code PIX estático","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","example":"12345678900"},"merchantName":{"type":"string"},"merchantCity":{"type":"string"},"amount":{"type":"number"}},"required":["key","merchantName","merchantCity"]}}}},"responses":{"200":{"description":"QR Code gerado"}}}},"/api/xml-convert":{"post":{"tags":["Documentos"],"summary":"Converter XML fiscal para PDF","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"xml":{"type":"string"}},"required":["xml"]}}}},"responses":{"200":{"description":"PDF gerado"}}}},"/api/webhook/payment":{"post":{"tags":["Webhooks"],"summary":"Webhook de pagamento","responses":{"200":{"description":"Webhook processado"}}}},"/api/webhook/whatsapp":{"post":{"tags":["Webhooks"],"summary":"Webhook WhatsApp","responses":{"200":{"description":"Webhook processado"}}}}},"components":{"securitySchemes":{"cookieAuth":{"type":"apiKey","in":"cookie","name":"syntra_session"}}},"security":[{"cookieAuth":[]}]}