Vault Credentials
In the Rapida dashboard go to Credentials → Create Credential, select provider type Vonage:| Key | Description |
|---|---|
api_key | Vonage API key |
api_secret | Vonage API secret |
application_id | Vonage Application ID (required for JWT auth on outbound) |
private_key | Vonage Application private key — PEM string (required for JWT auth on outbound) |
Setup
Set PUBLIC_ASSISTANT_HOST
PUBLIC_ASSISTANT_HOST is the public HTTPS hostname Vonage will use to reach your server — for the answer URL and the WebSocket media stream.- Production
- Local Development (ngrok)
Set it in Also update
docker/assistant-api/.assistant.env:connection.media in ui/src/configs/config.production.json:Create a Vonage Voice Application
In Vonage Dashboard → Applications → Create a new application, enable Voice capability and set:
Click Generate public and private key — download the private key and store the PEM content in the vault credential’s
| Field | Value |
|---|---|
| Answer URL (POST) | https://{PUBLIC_ASSISTANT_HOST}/v1/talk/vonage/call/{assistantId}?x-api-key={apiKey} |
| Event URL (POST) | https://{PUBLIC_ASSISTANT_HOST}/v1/talk/vonage/ctx/{contextId}/event?x-api-key={apiKey} |
private_key field.Attach vault credential to the assistant
In the assistant’s Phone Deployment, select the Vonage vault credential.
What Rapida Returns
When Vonage hits the answer URL, Rapida responds with an NCCO:Audio Spec
| Property | Value |
|---|---|
| Encoding | Linear PCM 16-bit |
| Sample rate | 16000 Hz |
| Channels | Mono |
| Transport | Raw binary WebSocket frames |
16kHz Linear PCM improves STT accuracy over 8kHz μ-law (Twilio/Exotel), particularly for providers that natively support 16kHz input.
Twilio
Alternative global PSTN provider
Exotel
India / SEA PSTN
Telephony Overview
All providers and URL routing reference
Configuration
Full env var reference