The Asha API returns Asha's evidence-grounded medical answers over the open A2A v1.0 protocol (HTTP and JSON). Every answer ships with its sources. Keys created on askasha.org reach Asha only.
At a glance
Item
Value
Base URL
https://api.askasha.org
Protocol
A2A v1.0 over HTTPS, JSON bodies. Every response carries the A2A-Version: 1.0 header.
Authentication
Authorization: Bearer <api_key> on every call except signup and health.
Agent
asha (alias health). Omitting agent_id defaults to Asha.
Key scope
Asha only. Any other agent id returns 403.
Input
text/plain inside JSON message parts: up to 8,000 characters (~2,000 tokens) on Free Sandbox, 100,000 characters on Pay-As-You-Go and Developer, and 500,000 characters on Pro and Enterprise.
Output
A task with a response artifact (Markdown text) and a provenance artifact (sources, citations, evidence count, model).
Free plan
250 queries a month, 50 a day (20 RPM), no card. Paid plans open when our API terms are final. Need more than the free tier today? Write to us at hello@dnai.systems.
Endpoints
Method
Path
Purpose
Auth
POST
/a2a/v1/message:send
Ask Asha; returns the completed task.
API key
POST
/a2a/v1/message:stream
Same request, streamed as server-sent events.
API key
GET
/a2a/v1/tasks/{task_id}
Fetch one task.
API key
GET
/a2a/v1/tasks
List your tasks (paginated, filterable).
API key
POST
/a2a/v1/tasks/{task_id}:cancel
Cancel a task that is still working.
API key
GET
/a2a/v1/health
Service health.
None
POST
/api/a2a/signup
Create a free key.
None
GET
/api/a2a/usage
Usage, limits, prepaid balance, and estimated spend for your key.
API key
GET, PUT
/api/a2a/preferences
Saved defaults for your key: name, tone, audience, length, emoji (Customize your agent).
API key
POST
/api/a2a/rotate-key
Replace your key; the old one stops at once.
API key
GET
/api/a2a/portal
Stripe billing portal.
API key
POST
/v1/chat/completions
OpenAI Chat Completions wire format over Asha (Drop-in with OpenAI SDKs).
API key
GET
/v1/models
Model ids for the OpenAI-compatible endpoint.
API key
GET
/api/a2a/baa
Current Business Associate Agreement (JSON, Markdown, HTML).
None
POST
/api/a2a/baa/accept
Accept the agreement for your account (BAA, self-serve).