{"openapi":"3.1.0","info":{"title":"Rt Agent Connector","version":"1.0.0","description":"Read leads, conversations, bookings and search the knowledge base of an Rt Agent workspace.","contact":{"email":"support@rtstics.com","url":"https://agent.rtstics.com"},"termsOfService":"https://agent.rtstics.com/terms"},"servers":[{"url":"https://agent.rtstics.com"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Rt Agent connector token (rt_muse_live_...)"}}},"security":[{"bearer":[]}],"paths":{"/api/public/muse/v1":{"post":{"operationId":"rtAgentAction","summary":"Run an Rt Agent action","description":"Actions: search_knowledge (needs query; scope knowledge:read), get_leads (leads:read), get_conversations (conversations:read), get_bookings (bookings:read, upcoming).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"type":"string","enum":["search_knowledge","get_leads","get_conversations","get_bookings"]},"query":{"type":"string","maxLength":1000},"agent_id":{"type":"string","format":"uuid"},"limit":{"type":"integer","minimum":1,"maximum":50,"default":10}}}}}},"responses":{"200":{"description":"Success"},"400":{"description":"Invalid request"},"401":{"description":"Missing, invalid or revoked token"},"403":{"description":"Token lacks the required scope"},"429":{"description":"Rate limit exceeded (60/min per token)"}}}}}}