mdapi.io - Health check

Service health check endpoint for uptime monitoring and availability verification.

Original content

{
  "status": "ok",
  "service": "mdapi.io",
  "description": "Minimal Data API I/O: a content transformation layer primitive for AI systems. Transforms documents, images, and webpages into AI-ready Markdown and structured data, optimized for LLM efficiency and token usage.",
  "version": "1.0.0",
  "endpoints": {
    "about": "/about",
    "conversion": "/",
    "openai": "/v1/chat/completions",
    "mcp": "/mcp",
    "acp": "/acp",
    "a2a": "/a2a",
    "health": "/health",
    "llms": "/llms.txt",
    "llms_full": "/llms-full.txt",
    "ai_discovery": "/.well-known/ai-discovery.json",
    "agent": "/.well-known/agent.json",
    "agent_card": "/.well-known/agent-card.json",
    "acp_manifest": "/.well-known/acp.json",
    "x402_manifest": "/.well-known/x402.json",
    "openapi_json": "/.well-known/openapi.json",
    "openapi_yaml": "/.well-known/openapi.yaml",
    "mapi": "/.well-known/mapi.md",
    "skill": "/.well-known/skill.md"
  },
  "examples": {
    "convert_url": "curl 'https://mdapi.io/?url=https://example.com/doc.pdf'",
    "convert_with_prompt": "curl 'https://mdapi.io/?url=https://example.com&prompt=Summarize+this&result=prompt'",
    "convert_file": "curl -X POST -F 'file=@doc.pdf' 'https://mdapi.io/'",
    "openai_sdk": "client = OpenAI(base_url='https://mdapi.io/v1', api_key='token')",
    "mcp_tool": "curl -X POST https://mdapi.io/mcp -H 'Content-Type: application/json' -d '{\"method\":\"tools/call\",\"params\":{\"name\":\"convert\",\"arguments\":{\"url\":\"https://example.com\"}}}'",
    "acp_rpc": "curl -X POST https://mdapi.io/acp -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"tools/call\",\"params\":{\"name\":\"convert\",\"arguments\":{\"url\":\"https://example.com\"}}}'",
    "a2a_rpc": "curl -X POST https://mdapi.io/a2a -H 'Content-Type: application/a2a+json' -d '{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"SendMessage\",\"params\":{\"message\":{\"messageId\":\"msg_1\",\"parts\":[{\"text\":\"Convert https://example.com\"}]}}}'"
  },
  "limits": {
    "max_file_size": "50 MB",
    "max_url_content": "50 MB",
    "rate_limit": "10,000 requests per hour",
    "free_tier": "10 requests per day (no token required), within the service’s overall free quota",
    "paid_tier": "min $0.01 per conversion (USDC on Solana)",
    "token_validity": "1 year"
  }
}