Complete reference for the DHAS Health API
/health-api/querySend a health query to the API
All API requests must include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY| Header | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer YOUR_API_KEY |
{
"query": "What are the symptoms of diabetes?",
"endpoint": "general_query"
}{
"result": "Diabetes symptoms include...",
"confidence_score": 0.95,
"sources": [
{
"title": "WHO Diabetes Guidelines",
"url": "https://example.com",
"reliability": 0.98
}
],
"tokens_used": 150,
"response_time_ms": 245
}curl -X POST https://api.dhashealth.com/health-api/query \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What are the symptoms of diabetes?",
"endpoint": "general_query"
}'