Developer API Gateway
Securely integrate MediTrust's pre-adjudication AI scoring and verification loops into external insurance core platforms.
Your Organization API Credentials
Use this cryptographic token in the Authorization header of your requests as: Token <YOUR_API_TOKEN>. Keep this token secure.
API Sandbox Playground
Integration Templates & Documentation
Test your endpoints directly in the CLI using this curl snippet:
curl -X POST "http://localhost:8000/api/v1/meditrust/claims/score/" \
-H "Authorization: Token <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"claim_amount": 8500,
"patient_id": "070707070",
"historical_avg_cost": 6000,
"service_dates": [
"2026-07-03"
],
"diagnosis_codes": [
"B54.9"
],
"provider_id": "PRV-014",
"facility_name": "Nairobi PHC Clinic",
"language": "en"
}'Execute requests in Python using the `requests` library:
import requests
url = "http://localhost:8000/api/v1/meditrust/claims/score/"
headers = {
"Authorization": "Token <YOUR_API_TOKEN>",
"Content-Type": "application/json"
}
payload = {
"claim_amount": 8500,
"patient_id": "070707070",
"historical_avg_cost": 6000,
"service_dates": [
"2026-07-03"
],
"diagnosis_codes": [
"B54.9"
],
"provider_id": "PRV-014",
"facility_name": "Nairobi PHC Clinic",
"language": "en"
}
response = requests.post(url, json=payload, headers=headers)
print(response.status_code)
print(response.json())Integrate inside Node.js applications using standard fetch:
const fetch = require('node-fetch');
const url = 'http://localhost:8000/api/v1/meditrust/claims/score/';
const headers = {
'Authorization': 'Token <YOUR_API_TOKEN>',
'Content-Type': 'application/json'
};
fetch(url, {
method: 'POST',
headers,
body: JSON.stringify({
"claim_amount": 8500,
"patient_id": "070707070",
"historical_avg_cost": 6000,
"service_dates": [
"2026-07-03"
],
"diagnosis_codes": [
"B54.9"
],
"provider_id": "PRV-014",
"facility_name": "Nairobi PHC Clinic",
"language": "en"
})
})
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));MediTrust API Specifications
POST /claims/score/
AI Fraud Scorer. Scores cost deviations, service frequencies, and provider trust matrix profiles. Returns FHIR R4 ClaimResponse JSON.
POST /ocr/
Vision OCR Assistant. Takes clinic record images, performs character extraction, and generates matching ICD-10 proposals.
GET /trust-scores/
Provider Trust Scores. Fetches historical approval rates and patient confirmation scores calculated with weighted exponential decay.
GET /ledger/
Decentralized Trust Ledger. List blockchain-anchored cryptographic SHA-256 block hashes verifying claims and payouts integrity.