Welcome to the API
The Mirobody Health API provides programmatic access to health device integrations, data retrieval, and AI-powered health insights.Base URL:
http://localhost:18080 (development) or https://your-domain.com (production)API Categories
Pulse API
Connect health devices and retrieve standardized health data
Chat API
Interact with AI health assistants
MCP Protocol
JSON-RPC interface for AI agents and tools
Authentication
Most API endpoints require authentication using JWT tokens:Rate Limiting
API requests are rate-limited per user and per provider:- Default: 100 requests per minute per user
- Provider-specific: Varies by provider (e.g., Garmin: 60 req/min)
Error Responses
All API errors follow a consistent format:Common Error Codes
| Code | Description | Resolution |
|---|---|---|
INVALID_TOKEN | OAuth token invalid or expired | Refresh token or relink account |
PROVIDER_NOT_FOUND | Provider doesn’t exist | Check provider slug |
USER_NOT_LINKED | User hasn’t linked provider | Complete OAuth flow first |
RATE_LIMIT_EXCEEDED | Too many requests | Wait and retry with backoff |
INTERNAL_ERROR | Server-side error | Contact support |
Quick Start
1
List available providers
2
Link a provider
3
Retrieve health data
SDKs and Libraries
- Python
- cURL
SDKs are under development. For now, use direct HTTP requests or the examples above as reference.
API Versioning
The API uses URL-based versioning:- Current:
/api/v1/... - Future:
/api/v2/...(when available)