https://api.amsh.ai/v15-Minute Developer Quickstart
Integrate your clinic with AMSh in three straightforward steps: obtain your API credentials, configure your doctor roster, and forward your inbound phone lines or dispatch outbound calls.
Generate API Key
Access developer tokens in clinic dashboard with role-based scopes.
Sync Calendars
Connect Google Calendar or your EMR API for real-time doctor availability.
Forward Phone Lines
Point your Twilio, Exotel, Plivo or SIP trunk to AMSh WebSocket endpoint.
curl -X POST https://api.amsh.ai/v1/calls/dispatch \
-H "Authorization: Bearer amsh_live_sec_9938217f2a" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210",
"patient_name": "Rohan Verma",
"persona_id": "priya",
"context": {
"clinic_name": "Sunrise Dental Care",
"doctor_name": "Dr. Sharma",
"purpose": "Appointment Confirmation"
}
}'/api/v1/calls/dispatchInitiates an autonomous outbound phone call to a patient using your clinic's AI Virtual Receptionist. Used for post-op checkups, recall reminders, and appointment re-confirmations.
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | REQUIRED | Patient phone number in E.164 format (e.g. +919876543210 or +14155552671) |
| from_did | string | OPTIONAL | Specific clinic DID to display on caller ID. Defaults to primary line. |
| persona_id | string | OPTIONAL | Virtual employee persona ('priya', 'sarah', 'emma', 'fatima'). |
| patient_name | string | REQUIRED | Patient full name for personalized greeting. |
| context | object | OPTIONAL | Clinical context e.g. { doctor: 'Dr. Sharma', service: 'Root Canal' } |
| webhook_url | string | OPTIONAL | Override default webhook endpoint for this specific call lifecycle. |
curl -X POST https://api.amsh.ai/v1/calls/dispatch \
-H "Authorization: Bearer amsh_live_sec_9938217f2a" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210",
"patient_name": "Rohan Verma",
"persona_id": "priya",
"context": {
"clinic_name": "Sunrise Dental Care",
"doctor_name": "Dr. Sharma",
"purpose": "Appointment Confirmation"
}
}'{
"status": "queued",
"call_id": "call_amsh_8f912be4a",
"to": "+919876543210",
"persona_id": "priya",
"carrier": "twilio_sip_trunk",
"created_at": "2026-10-10T15:45:00Z",
"stream_url": "wss://stream.amsh.ai/v1/voice/call_amsh_8f912be4a"
}