Quickstart Guide
Get your first phone system running in 5 minutes.
Prerequisites
- A sandbox secret key (
sk_test_*), from the admin portal; see Getting your API keys. Sandbox requests never touch the real phone network and are never billed; see Sandbox vs live keys. Switch to your live key (sk_live_*) when you go to production. curlor any HTTP client
Step 1: Create an Account
Accounts represent your customers' organizations (e.g., "Jones Chiropractic").
Bash
curl -X POST https://api.dialstack.ai/v1/accounts \
-H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "contact@joneschiro.com",
"primary_contact_name": "Dana Jones",
"address": {
"street": "123 Main St",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "US"
},
"pricing": {
"per_user_rate": 1999,
"per_did_rate": 299,
"per_voiceai_location_rate": 4999
}
}'
email, primary_contact_name, address (the account's main location, used for E911 and for taxes and fees) and pricing (your agreed monthly rates, in cents) are all required. See Create an account for the optional fields.
Response:
JSON
{
"id": "YOUR_ACCOUNT_ID",
"email": "contact@joneschiro.com",
"config": {},
"created_at": "2025-10-18T10:00:00Z",
"updated_at": "2025-10-18T10:00:00Z"
}
Save the id as your account ID for the next steps.
Step 2: Create a User
Users represent people who will have phone service.
Bash
curl -X POST https://api.dialstack.ai/v1/users \
-H "Authorization: Bearer sk_test_YOUR_SECRET_KEY" \
-H "DialStack-Account: YOUR_ACCOUNT_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Dr. Alice Smith",
"email": "alice@joneschiro.com"
}'
Response:
JSON
{
"id": "YOUR_USER_ID",
"name": "Dr. Alice Smith",
"email": "alice@joneschiro.com",
"created_at": "2025-10-17T14:30:00Z",
"updated_at": "2025-10-17T14:30:00Z"
}
Save the user's id for the next step.
Step 3: Assign a Phone Number
Assign a phone number to the user so they can make and receive calls. See New Numbers for ordering and assignment.
Step 4: Make a Test Call
Once a phone number is assigned, you can:
- Provision a desk phone via the admin panel (devices are auto-configured for the user)
- Build a softphone using the WebRTC API for browser or mobile calling
- Use click-to-call to initiate calls from your backend
Next Steps
- Authentication Guide - Learn about API keys and security
- API Reference - Full API documentation
Need Help?
- Email: api@dialstack.ai
- GitHub Issues: github.com/dialstack/dialstack/issues