API v2.1

API Documentation

SHOMA AI Health API gives you access to enterprise-grade healthcare AI capabilities. Process medical text, encode diagnoses, and integrate with your EHR system — all in one place.

Sub-100ms latencyHIPAA compliantFHIR R4 native

Quickstart — First call in 5 minutes

1

Install the SDK

# Install via pip

pip install shoma-ai

2

Make your first API call

from shoma_ai import HealthAnalyzer

client = HealthAnalyzer(api_key="YOUR_API_KEY")

result = client.analyze(

text="Patient with chest pain and shortness of breath",

mode="clinical_nlp"

)

print(result.diagnoses, result.icd_codes)

Response (87ms)

{

"diagnoses": ["Acute coronary syndrome", "Dyspnea"],

"icd_codes": ["I24.9", "R06.00"],

"confidence": 0.94,

"fhir_bundle": {...}

}

API Reference

Base URL: https://api.shomahealth.ai

POST/v1/analyze/clinical-nlpCore
POST/v1/analyze/lab-reportCore
POST/v1/analyze/medicationCore
POST/v1/icd/encodeCoding
POST/v1/icd/decodeCoding
GET/v1/patient/recordsRecords
POST/v1/webhooksWebhooks
DELETE/v1/webhooks/{id}Webhooks

Webhooks

Register webhook endpoints to receive real-time notifications for async events. SHOMA AI sends signed HTTP POST requests to your endpoint.

Available Events

analysis.completedanalysis.failedcredit.depletedkey.expiringpayment.succeededpayment.failed

# Register a webhook

response = client.webhooks.create(

url="https://your-app.com/webhooks/shoma",

events=["analysis.completed", "credit.depleted"]

)

Ready to integrate?

Start with 500 free credits. No credit card required.