{
    "success": true,
    "api_version": "v1",
    "base_url": "https://api.game.bdmove.site/api/v1",
    "rate_limit_per_minute": 120,
    "authentication": {
        "client_registration": "X-API-Key: <application_api_key>",
        "client_requests": "Authorization: Bearer <client_access_token>",
        "manifest_verification": "Verify digital_signature against signing_public_key_pem using ECDSA-P256-SHA256."
    },
    "endpoints": [
        {
            "method": "GET",
            "path": "/api/v1/health",
            "auth": "None",
            "description": "Service health and database connectivity check."
        },
        {
            "method": "GET",
            "path": "/api/v1/app/version",
            "auth": "Bearer Token or X-API-Key",
            "params": {
                "channel": "stable|beta|development"
            },
            "description": "Retrieve latest published release version and minimum supported version."
        },
        {
            "method": "GET",
            "path": "/api/v1/app/manifest",
            "auth": "Bearer Token or X-API-Key",
            "params": {
                "channel": "stable|beta|development",
                "environment": "production|staging|development",
                "profile": "optional profile_key"
            },
            "description": "Retrieve signed release & configuration manifest metadata plus ECDSA public key."
        },
        {
            "method": "GET",
            "path": "/api/v1/configuration",
            "auth": "Bearer Token or X-API-Key",
            "params": {
                "profile": "optional profile_key",
                "environment": "production|staging|development",
                "client_version": "optional SemVer"
            },
            "description": "Fetch latest published JSON configuration with ECDSA digital signature."
        },
        {
            "method": "GET",
            "path": "/api/v1/configuration/version",
            "auth": "Bearer Token or X-API-Key",
            "params": {
                "profile": "optional profile_key",
                "environment": "production|staging|development"
            },
            "description": "Lightweight check for latest published configuration version and SHA-256 hash."
        },
        {
            "method": "POST",
            "path": "/api/v1/client/register",
            "auth": "X-API-Key",
            "body": {
                "client_name": "string",
                "client_version": "SemVer",
                "os_info": "string"
            },
            "description": "Register a desktop application instance and receive a scoped Bearer token."
        },
        {
            "method": "POST",
            "path": "/api/v1/client/heartbeat",
            "auth": "Bearer Token",
            "body": {
                "client_version": "optional SemVer",
                "os_info": "optional string"
            },
            "description": "Report client liveness and receive latest available config_version."
        },
        {
            "method": "GET",
            "path": "/api/v1/providers/status",
            "auth": "Admin Session or Bearer Token",
            "description": "Return live status, latency, and health summary of external API providers (no secrets)."
        },
        {
            "method": "GET",
            "path": "/api/v1/events",
            "auth": "Admin Session or Bearer Token",
            "params": {
                "after_id": "cursor ID",
                "category": "INFO|SUCCESS|WARNING|ERROR|SECURITY|API|CONFIGURATION|AI|CLIENT",
                "severity": "info|low|medium|high|critical",
                "q": "search"
            },
            "description": "Polling endpoint returning real-time structured platform events."
        },
        {
            "method": "GET",
            "path": "/api/v1/events/stream",
            "auth": "Admin Session or Bearer Token",
            "description": "Server-Sent Events (SSE) real-time event stream with Last-Event-ID replay."
        },
        {
            "method": "GET",
            "path": "/api/v1/documentation",
            "auth": "None",
            "description": "Machine-readable JSON catalog of REST API v1 endpoints."
        }
    ]
}