๐Ÿ“š BondMCP Platform - Complete API Reference

October 3, 2025 ยท View on GitHub

Version: 2.1.0
Base URL: https://t9xbkyb7mg.us-east-1.awsapprunner.com
Total Endpoints: 76
Last Updated: October 3, 2025


๐Ÿ“– Documentation Structure

This complete API reference is organized into 5 detailed guides:

1. Authentication & API Keys

16 endpoints covering user registration, login, token management, and API key generation.

  • User Registration & Login
  • JWT Token Management (verify, refresh, logout)
  • API Key Generation & Management
  • User Profile Access

2. Health AI Analysis

17 endpoints for AI-powered health analysis and data tracking.

  • Fitness Activity Analysis
  • Nutrition & Meal Analysis
  • Bloodwork/Lab Results Analysis
  • DNA/Genetic Health Insights
  • Health Risk Assessment
  • Vitals, Symptoms, Medications, Conditions, Allergies

3. Billing & Subscriptions

6 endpoints for payment processing and subscription management.

  • Subscription Plans ($0, $29, $99, $299/month)
  • Stripe Customer Setup
  • Payment Method Management
  • Invoice History
  • Subscription Status

4. Healthcare Integration

23 endpoints for EMR integration and healthcare workflows.

  • Patient Management
  • Medical Records (EHR/EMR)
  • Prescription Tracking
  • Appointment Scheduling
  • Digital Health Programs
  • Lab Reference Data
  • Vendor Integration

5. System, Admin & MCP

14 endpoints for system monitoring, administration, and MCP protocol.

  • System Status & Health Checks
  • Platform Analytics
  • User Administration
  • AI Usage Statistics
  • MCP Configuration
  • Webhooks (Stripe)

๐Ÿš€ Quick Start

1. Register & Authenticate

BASE_URL="https://t9xbkyb7mg.us-east-1.awsapprunner.com"

# Register
curl -X POST ${BASE_URL}/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "your-email@company.com",
    "password": "SecurePassword123!",
    "name": "Your Name"
  }'

# Response includes access_token
# Use this token in Authorization header for all requests

2. Generate API Key

# Using JWT token from registration
curl -X POST ${BASE_URL}/api/v1/api-keys/create \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Production API Key"}'

3. Analyze Health Data

# Fitness analysis
curl -X POST ${BASE_URL}/health/fitness \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "activity": "running",
    "duration": 45,
    "intensity": "high"
  }'

# Returns AI-powered recommendations and calorie estimates

4. Check Subscription

curl -X GET ${BASE_URL}/billing/subscription \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

๐Ÿ” Authentication

Methods

Bearer Token (JWT) - Required for most endpoints

Authorization: Bearer eyJREDACTED_JWT_TOKEN

API Key - Alternative for programmatic access

X-API-Key: bcp_REDACTED_EXAMPLEyour_api_key_here

Token Lifecycle

  • Expiration: 24 hours
  • Refresh: Use /auth/refresh to get new token
  • Revocation: Use /auth/logout to blacklist token

๐Ÿ“Š Subscription Tiers

PlanPriceAPI Calls/MonthFeatures
Free$0100Basic health endpoints, community support
Basic$291,000All health endpoints, email support
Premium$9910,000Lab analysis, priority support, webhooks
Enterprise$299UnlimitedCustom integrations, 24/7 support, dedicated manager

๐ŸŽฏ Common Use Cases

Healthcare App Integration

# Example: LangGraph integration
from langchain_core.tools import tool
import requests

@tool
def analyze_patient_health(activity: str, duration: int) -> dict:
    """Analyze patient fitness using BondMCP"""
    response = requests.post(
        "https://t9xbkyb7mg.us-east-1.awsapprunner.com/health/fitness",
        headers={"Authorization": f"Bearer {token}"},
        json={"activity": activity, "duration": duration, "intensity": "moderate"}
    )
    return response.json()

Patient Dashboard

  • Register user โ†’ /auth/register
  • Get patient data โ†’ /api/v1/patients
  • View medical records โ†’ /api/v1/medical-records
  • Schedule appointment โ†’ /api/v1/appointments

AI Health Coach

  • Track vitals โ†’ /health/vitals
  • Analyze meals โ†’ /health/nutrition
  • Check symptoms โ†’ /health/symptoms
  • Get recommendations โ†’ AI analysis endpoints

๐Ÿ”— Additional Resources


โš ๏ธ Known Limitations

  1. Endpoint Duplication - Some endpoints exist in multiple versions (v1, v2, root). Use v1 versions when available.
  2. Mock Data - Some endpoints (patients, appointments) return mock data for testing.
  3. Consensus Mode - Multi-LLM consensus system deployed but not yet activated in endpoints.
  4. Payment Methods - Adding cards requires Stripe.js frontend (cannot be done via API alone).

๐Ÿ“ž Support

  • Documentation Issues: Open issue at github.com/bondmcp/docs
  • API Bugs: Open issue at github.com/auroracapital/bondmcp-platform
  • Email: info@auroracapital.nl

Last Updated: October 3, 2025
API Version: 2.1.0
Status: โœ… Production Ready