Quickstart
Create an API key, make your first request, then have an agent place a phone call, in a few minutes.
1. Create an API key#
Sign in to VoiceMint and open Developers → API keys (open the console). Create a key:
- Test while you build (
vm_sk_test_…), live for production (vm_sk_live_…). - Give it only the products it needs, for example Agents (full).
- Optional: a daily credit cap, an expiry date and an IP allow-list.
The full key is shown once. Copy it into your server's secrets and an environment variable:
export VOICEMINT_API_KEY=vm_sk_test_...2. Install an SDK (optional)#
You can call the REST API directly; the SDKs add retries, typed errors and helpers that wait for jobs.
# nothing to install: curl is enough
curl --version3. Make your first request#
Check your credit balance:
curl https://api.voicemint.io/api/v1/credits/balance \
-H "Authorization: Bearer $VOICEMINT_API_KEY"4. Create an agent and talk to it#
curl -X POST https://api.voicemint.io/api/v1/agents \
-H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
-d '{"name": "Clinic receptionist", "instructions": "Book, move or cancel appointments. Be brief and warm.", "status": "active"}'
curl -X POST https://api.voicemint.io/api/v1/agents/AGENT_ID/chat \
-H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
-d '{"message": "Can I see a doctor tomorrow morning?"}'5. See the result#
- In the app: Agents → Agents shows the agent and its conversations.
- In the developer console: Developers → Usage & logs shows each request your key made (method, path, status, latency) and the credits it spent.
Next: place a phone call#
With at least one phone number on the account and a key with agents.write:
curl -X POST https://api.voicemint.io/api/v1/agents/calls \
-H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
-d '{"agent_id": "AGENT_ID", "to": "+919876543210", "variables": {"name": "Asha"}}'Read on: Phone calls, Errors, Webhooks.