Skip to main content
Vonage sends a webhook when a call arrives. Rapida responds with an NCCO (Nexmo Call Control Object) that opens a WebSocket carrying Linear PCM 16kHz audio — higher quality than Twilio’s μ-law.

Vault Credentials

In the Rapida dashboard go to Credentials → Create Credential, select provider type Vonage:
KeyDescription
api_keyVonage API key
api_secretVonage API secret
application_idVonage Application ID (required for JWT auth on outbound)
private_keyVonage Application private key — PEM string (required for JWT auth on outbound)

Setup

1

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.
Set it in docker/assistant-api/.assistant.env:
PUBLIC_ASSISTANT_HOST=your-server.com   # no https:// prefix
Also update connection.media in ui/src/configs/config.production.json:
{
  "connection": {
    "media": "https://your-server.com"
  }
}
2

Create a Vonage Voice Application

In Vonage DashboardApplications → Create a new application, enable Voice capability and set:
FieldValue
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}
Click Generate public and private key — download the private key and store the PEM content in the vault credential’s private_key field.
3

Link a Vonage number

In Numbers, assign a virtual number to the application you just created.
4

Attach vault credential to the assistant

In the assistant’s Phone Deployment, select the Vonage vault credential.
5

Verify

curl https://{PUBLIC_ASSISTANT_HOST}/readiness/
# Expected: {"status":"ok"}

What Rapida Returns

When Vonage hits the answer URL, Rapida responds with an NCCO:
[{
  "action": "connect",
  "endpoint": [{
    "type": "websocket",
    "uri": "wss://{PUBLIC_ASSISTANT_HOST}/v1/talk/vonage/ctx/{contextId}?x-api-key={apiKey}",
    "content-type": "audio/l16;rate=16000"
  }]
}]

Audio Spec

PropertyValue
EncodingLinear PCM 16-bit
Sample rate16000 Hz
ChannelsMono
TransportRaw 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