{
    "name": "Home API",
    "purpose": "Read a workspace's profile, orders and shared files from your own code, scripts and AI assistants.",
    "endpoints": {
        "GET /v1/user": "Get the authenticated user. Scope: user:read",
        "GET /v1/orders": "List orders. Params: page, per_page, query, status[], created_at, sort, direction. Scope: orders:read",
        "GET /v1/orders/{id}": "Get an order. Scope: orders:read",
        "GET /v1/orders/{id}/history": "Get the history of an order. Params: page, per_page. Scope: orders:read",
        "GET /v1/files/search": "Search the shared files. Params: query, limit. Scope: files:read"
    },
    "authentication": "Authorization: Bearer <token>. Create an API key at https://demo.ndna.io/api-keys, or connect an MCP client, which signs in with OAuth. Every key works in one workspace and carries scopes.",
    "scopes": {
        "user:read": "Read your profile",
        "orders:read": "Read orders",
        "files:read": "Search the shared files"
    },
    "limits": "120 requests/minute per workspace and 300 per client address. Responses carry RateLimit-Limit and RateLimit-Remaining; over the limit, 429 with Retry-After.",
    "docs": "https://api.ndna.io/docs",
    "openapi": "https://api.ndna.io/docs.json",
    "mcp": "https://api.ndna.io/mcp",
    "llms_txt": "https://api.ndna.io/llms.txt"
}