Skip to main content
Vonage’s Voice API uses an NCCO (Nexmo Call Control Object) to control call flow and streams audio over a WebSocket to your application. Your server opens a Humain Kiosk session and passes the WebSocket URL to Vonage — Vonage bridges the caller’s audio to the Humain AI.
Store your credential as an environment variable. Never hard-code hk_live_… tokens in source files, dialplans, or configuration files committed to version control. Use an environment variable (HUMAIN_CREDENTIAL) or a secrets manager and inject the value at runtime.

How it works

When a call arrives, Vonage fetches an answer URL from your server. You respond with an NCCO JSON array that includes a connect action pointing at the Humain WebSocket stream endpoint.

NCCO response


Answer server


Vonage dashboard configuration

  1. Open the Vonage API Dashboard and go to Your applications.
  2. Create a new Voice application, or edit an existing one.
  3. Under Capabilities → Voice, set:
    • Answer URL → GET https://your-server.example.com/answer
    • Event URL → POST https://your-server.example.com/event
  4. Link your virtual number to the application under Numbers.
Vonage requires your answer URL to respond within 3 seconds. The Humain API call in the answer handler typically responds in under 300 ms, well within this limit.