Quickstart
Five steps from sign-up to a live phone line. Building an agent costs nothing; test calls and real calls are billed per connected minute from prepaid credit.
1. Create a workspace
Sign up and name your workspace. Its data region (CH, EU or US) is set in Settings.
2. Create an agent from a role
Agents → New agent. Pick a role, describe your company, choose a voice and language.
# Your API key: dashboard → Settings → API keys (shown once).
export MCPDIAL_API_KEY="cv_live_…"
# Create the agent and keep its id (needs jq). It starts as a draft.
AGENT_ID=$(curl -s -X POST https://mcpdial.com/api/v1/agents \
-H "Authorization: Bearer $MCPDIAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Front desk",
"role": "receptionist",
"language": "de",
"company": { "name": "Acme Dental", "description": "Family dental practice, Zurich" }
}' | jq -r '.data.id')
echo "$AGENT_ID"3. Test it in the browser
Add credits in Billing, then open the agent’s Test lab and start a browser test call (billed per minute). Interrupt it, ask it something off-script, try to book.
4. Give it a calendar
Calendar → add your opening hours and slot length; optionally connect Google or Microsoft 365.
5. Go live
Set the agent live, then Numbers → buy a local number and route it to the agent — or call out via the API.
# A draft agent places no calls (409 agent_not_live). Set it live first:
curl -s -X PATCH https://mcpdial.com/api/v1/agents/$AGENT_ID \
-H "Authorization: Bearer $MCPDIAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "live" }'# Dials a real number and uses credits — put in a number you may call.
curl -s -X POST https://mcpdial.com/api/v1/calls \
-H "Authorization: Bearer $MCPDIAL_API_KEY" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"agent_id": "$AGENT_ID",
"to": "+41441234567",
"goal": "Confirm tomorrow's appointment",
"consent": { "basis": "existing_customer" }
}
EOF
# → 201 { "call_id": "…", "status": "dialing" }
# 202 { "call_id": "…", "status": "scheduled", "scheduled_for": "…" } (outside local calling hours)
# 422 { "call_id": "…", "status": "canceled", "reason": "…" } (refused by the compliance gate)Outbound calls to Germany, France and Switzerland require a consent basis at launch — see compliance.