Endpoints
Base URL https://api.mopro-codex.com ·
Authentication Authorization: Bearer YOUR_API_KEY ·
Machine-readable spec at openapi.json.
Authentication
Every protected endpoint takes the same header. Keys are issued during the private beta by MMSx Authority — placeholder shown; never publish a real key.
Authorization: Bearer YOUR_API_KEY
Quota headers
Every counted response returns your live quota position:
X-MMSx-Plan: Professional
X-MMSx-Monthly-Limit: 50000
X-MMSx-Monthly-Used: 128
X-MMSx-Monthly-Remaining: 49872
Denied requests (401/403/429) are logged but never counted against quota.
Endpoint reference
Ontology and service health with dataset counts.
curl "https://api.mopro-codex.com/v3/ontology/health"
Typo-tolerant search across canonical names, aliases and search terms.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/search?q=..."
Full exercise profile: identity, family, aliases, variations, graph domains, figure status.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/profile?name=..."
Parent plus full child variation tree for a base exercise.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/tree?name=..."
Direct child variations only.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/children?name=..."
All registered aliases for an exercise.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/aliases?name=..."
Graph-domain biomechanics interpretation (modelled decision-support).
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/graph-domains?name=..."
Figure requirement and figure status for an exercise.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/exercise/figures?name=..."
Subscription plan catalogue with quotas and endpoint access levels.
curl "https://api.mopro-codex.com/v3/plans"
Status of the presented key: plan, limits, expiry, usage month.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/auth/key-status"
Recent request log for the presented key.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/auth/usage?limit=..."
Cheap authenticated ping to verify a key works.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/auth/test-key"
Self-revoke the presented key (admin can revoke by prefix).
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/auth/revoke-key"
Month-by-month usage summary for the presented key.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mopro-codex.com/v3/usage/monthly"
Mint a new key. Admin token required (paid tiers). For a free key use /v3/auth/signup.
# Private beta: keys are minted by MMSx Authority.
# Admin token is never published; contact MMSx for access.
Boundary fields on every payload
All exercise responses carry
review_status, confidence, evidence_boundary
and safety_boundary. Treat them as first-class data — surface them
to end users where interpretation is shown.
{
"review_status": "generated_ontology_ready_for_mmsx_expert_review",
"confidence": 1.0,
"evidence_boundary": "Generated ontology, ready for MMSx expert review. Do not claim all records are fully validated.",
"safety_boundary": "Educational decision-support only; not medical diagnosis.",
"ok": true,
"base_exercise_count": 7000,
"ontology_node_count": 35000,
"edge_count": 28000,
"alias_count": 14239,
"search_term_count": 58490,
"graph_delta_count": 199577,
"figure_requirement_count": 35000,
"review_queue_count": 16364,
"status": "core_exercise_api_ready"
}