REST API v2.6 • MCP 2024-11-05

API Reference & Model Context Protocol Spec

Designed strictly for developers, agent architects, and software engineers. Authenticate API calls, integrate MCP tools into LLM workflows, and subscribe to restaurant events.

Authentication

All REST API requests and MCP tool executions must include an Authorization bearer header containing a secret API key.

Authorization: Bearer sk_live_8f9c2a10e4b789123...

Granular Permission Scopes:

orders:read - Read orders & tabs
orders:write - Create & mutate orders
fiscal:write - Emit DGII tax vouchers
analytics:read - Access financial metrics
POST
/api/v1/orders

Creates a new ticket and immediately dispatches it to KDS and POS print queues.

Request Payload (JSON)
{
  "table_number": "Mesa 04",
  "dining_option": "dine_in",
  "items": [
    {
      "product_id": "prod_ribeye_12oz",
      "quantity": 1,
      "unit_price": 1250.00,
      "notes": "Término medio, sin cebolla"
    }
  ],
  "customer_rnc": "1-01-00244-1",
  "apply_legal_tip": true
}
MCP

Model Context Protocol (MCP 2024-11-05)

BrazzaOS natively implements the Model Context Protocol standard over SSE. This empowers autonomous agents to query stock, inspect registers, and generate audit reports.

claude_desktop_config.json
Claude Desktop
{
  "mcpServers": {
    "brazzaos": {
      "command": "npx",
      "args": ["-y", "@brazzaos/mcp-server"],
      "env": {
        "BRAZZA_API_KEY": "brazza_live_your_secret_key_here",
        "BRAZZA_SERVER_URL": "https://brazza.app/api/mcp"
      }
    }
  }
}

Exposed MCP Tools:

get_cfo_financial_summary

Calculates gross revenue, taxes, legal tip, and food margins.

audit_cash_drawer_shift

Inspects register shift and calculates blind drop variances.

list_active_orders

Fetches all live orders across dining room, delivery, and QR.

check_inventory_stock_levels

Returns raw ingredients below minimum reorder thresholds.

Webhooks & HMAC Verification

Webhooks sent to your endpoints include an X-Brazza-Signature header (alongside X-Onyx-Signature for backward compatibility) containing an HMAC SHA256 digest computed with your webhook secret.

X-Brazza-Signature: t=1728148900,v1=9a2f7c01b4e8...