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 500,000 characters per message.
Output
A task with a response artifact (Markdown text) and a provenance artifact (sources, citations, evidence count, model).
Free plan
50 queries a month, 10 a day, no card. Paid plans in Plans, limits, and errors.
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 and limits for your key.
API key
POST
/api/a2a/rotate-key
Replace your key; the old one stops at once.
API key
POST
/api/a2a/upgrade
Stripe checkout for a paid plan.
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).