Skip to content
VoiceMint Developers

Making requests

Base URL, versioning, JSON bodies, file uploads and binary responses.

Base URL and version#

text
https://api.voicemint.io/api/v1

Every path in these docs is relative to that base (/agents means https://api.voicemint.io/api/v1/agents). https://voicemint-api.alphaaiservice.com, the previous default host, serves the same API and still works. The version is in the path; changes inside v1 are backwards compatible: new endpoints, new optional fields and new response fields can appear at any time, so ignore fields you do not know. Breaking changes would ship as a new version, announced in the changelog.

JSON#

Send JSON with Content-Type: application/json; responses are JSON unless the endpoint returns a file. Times are ISO 8601 in UTC (2026-12-05T10:00:00Z) unless a field says otherwise; phone numbers are E.164 (+919876543210).

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": "Hello!"}'

File uploads#

Endpoints that take a file use multipart/form-data. Audio uploads accept mp3, wav, ogg, m4a, flac and webm up to 25 MB unless the endpoint says otherwise.

curl -X POST https://api.voicemint.io/api/v1/speech-to-text/transcribe \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" \
  -F "file=@./call.mp3" -F "language=en"

Binary responses#

Speech, audio conversions and downloads return the file itself (audio/mpeg, audio/wav, …). Save the body; the SDKs return bytes (AudioResponse.content in Python, Uint8Array in Node).

Request IDs and retries#

Retry 429 and 5xx responses with backoff; the SDKs do this for you (two retries by default, honouring Retry-After). Do not blindly retry a POST that creates something unless it supports an Idempotency-Key: see Idempotency.

Every endpoint#

The API reference lists every operation a key can call, generated from the server's own definition, with parameters, schemas and examples.