{"openapi":"3.0.0","paths":{"/healthz":{"get":{"operationId":"HealthController_healthz","parameters":[],"responses":{"200":{"description":""}},"tags":["Health"]}},"/readyz":{"get":{"operationId":"HealthController_readyz","parameters":[],"responses":{"200":{"description":""}},"tags":["Health"]}},"/v1/connect/request":{"get":{"operationId":"ConnectController_request","parameters":[],"responses":{"200":{"description":""}},"summary":"Pending authorization: requesting client, plan limits and discovered accounts","tags":["connect"]}},"/v1/connect/approve":{"post":{"operationId":"ConnectController_approve","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsSelectionDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectDto"}}}}},"summary":"Enable the selected accounts and finish the authorization","tags":["connect"]}},"/v1/connect/deny":{"post":{"operationId":"ConnectController_deny","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectDto"}}}}},"summary":"Deny the authorization request","tags":["connect"]}},"/v1/auth/google/start":{"get":{"operationId":"PanelController_start","parameters":[{"name":"return_to","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"summary":"Start the dashboard Google login (browser redirect)","tags":["panel"]}},"/v1/me":{"get":{"operationId":"PanelController_me","parameters":[],"responses":{"200":{"description":""}},"summary":"Current user, organization plan and Google connections","tags":["panel"]}},"/v1/logout":{"post":{"operationId":"PanelController_logout","parameters":[],"responses":{"204":{"description":""}},"tags":["panel"]}},"/v1/accounts":{"get":{"operationId":"PanelController_list","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountDto"}}}}}},"tags":["panel"]},"put":{"operationId":"PanelController_update","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsSelectionDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccountDto"}}}}}},"summary":"Replace the set of enabled accounts (checked against the plan limit)","tags":["panel"]}},"/v1/connections/{id}":{"delete":{"operationId":"PanelController_disconnect","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""}},"summary":"Disconnect a Google login: revokes it at Google and ends all MCP sessions","tags":["panel"]}}},"info":{"title":"Querya API","description":"REST API for the Querya dashboard (app.querya.io).","version":"1","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"cookie":{"type":"apiKey","in":"cookie","name":"qy_session"}},"schemas":{"AccountSelectionDto":{"type":"object","properties":{"id":{"type":"string","description":"Internal account id (from the accounts list)","format":"uuid"},"write_enabled":{"type":"boolean","description":"Allow write tools on this account","default":false}},"required":["id","write_enabled"]},"AccountsSelectionDto":{"type":"object","properties":{"accounts":{"description":"Complete set of accounts to enable. Accounts left out are disabled.","type":"array","items":{"$ref":"#/components/schemas/AccountSelectionDto"}}},"required":["accounts"]},"RedirectDto":{"type":"object","properties":{"redirect_url":{"type":"string","description":"Where the browser must navigate next"}},"required":["redirect_url"]},"AccountDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"customer_id":{"type":"string","example":"1234567890"},"name":{"type":"string","nullable":true},"currency":{"type":"string","nullable":true,"example":"BRL"},"time_zone":{"type":"string","nullable":true,"example":"America/Sao_Paulo"},"is_manager":{"type":"boolean"},"via_manager":{"type":"string","nullable":true,"description":"Manager (MCC) used to access the account"},"parent_customer_id":{"type":"string","nullable":true},"enabled":{"type":"boolean"},"write_enabled":{"type":"boolean"}},"required":["id","customer_id","name","currency","time_zone","is_manager","via_manager","parent_customer_id","enabled","write_enabled"]}}}}