{
    "openapi": "3.0.3",
    "info": {
        "title": "Drits API Hub",
        "version": "1.1.0"
    },
    "servers": [
        {
            "url": "https://api.drits.tech/v1"
        }
    ],
    "components": {
        "securitySchemes": {
            "dritsKey": {
                "type": "http",
                "scheme": "bearer"
            }
        }
    },
    "security": [
        {
            "dritsKey": []
        }
    ],
    "paths": {
        "/status": {
            "get": {
                "summary": "Service status",
                "security": []
            }
        },
        "/me": {
            "get": {
                "summary": "Current account"
            }
        },
        "/connections": {
            "get": {
                "summary": "List connections"
            },
            "post": {
                "summary": "Create connection"
            }
        },
        "/proxy/{slug}/{path}": {
            "get": {
                "summary": "Proxy request to a linked system",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "path",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/ai/tools": {
            "get": {
                "summary": "Tool definitions for AI agents"
            }
        },
        "/ai/call": {
            "post": {
                "summary": "Execute an AI tool call"
            }
        },
        "/ai/link": {
            "post": {
                "summary": "Auto-detect and optionally create a connection"
            }
        }
    }
}