Skip to main content

Configuring Your Account

After your partner application is approved, configure your account to start making calls. This guide covers webhook setup, telephony configuration, and verifying your account is ready.

View your configuration

Start by checking your current partner configuration:
curl -X GET https://api.vocobase.com/api/v2/config \
  -H "Authorization: Bearer rg_live_abc123def456ghi789jkl012"
The response shows your agent limit, allowed voices and languages, webhook status, and telephony configuration:
{
  "success": true,
  "data": {
    "name": "acme-corp",
    "display_name": "Acme Corporation",
    "agent_limit": 10,
    "current_agent_count": 0,
    "allowed_voices": ["a0e99841-438c-4a64-b679-ae501e7d6091"],
    "allowed_languages": ["en", "hi", "es"],
    "status": "active",
    "webhook": {
      "configured": false,
      "url": null,
      "secret": null
    },
    "telephony": {
      "twilio": { "configured": false },
      "mcube": { "configured": false }
    }
  }
}

Set up webhooks

Configure a webhook URL to receive notifications when calls complete. This is how you get transcripts, latency data, and recording URLs.
curl -X PUT https://api.vocobase.com/api/v2/config/webhook \
  -H "Authorization: Bearer rg_live_abc123def456ghi789jkl012" \
  -H "Content-Type: application/json" \
  -d '{
    "webhook_url": "https://your-server.com/webhooks/vocobase"
  }'
The response includes a webhook secret for verifying signatures:
{
  "success": true,
  "data": {
    "webhook_url": "https://your-server.com/webhooks/vocobase",
    "webhook_secret": "whsec_a1b2c3d4e5f6g7h8i9j0...",
    "message": "Save this secret — it will not be shown again."
  }
}
The webhook_secret is only returned once. Store it securely in your environment variables. If you lose it, call PUT /config/webhook again to generate a new one.
See Webhook Setup for details on signature verification.

Configure telephony

You need at least one telephony provider to make outbound calls. Vocobase supports Twilio and MCube.
Provide your Twilio Account SID, Auth Token, and a phone number:
curl -X PUT https://api.vocobase.com/api/v2/config/telephony/twilio \
  -H "Authorization: Bearer rg_live_abc123def456ghi789jkl012" \
  -H "Content-Type: application/json" \
  -d '{
    "account_sid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "auth_token": "your_twilio_auth_token",
    "from_number": "+14155551234"
  }'
See Twilio Setup for the full guide.

Update your display name

Optionally set a display name for your partner account:
curl -X PUT https://api.vocobase.com/api/v2/config/display-name \
  -H "Authorization: Bearer rg_live_abc123def456ghi789jkl012" \
  -H "Content-Type: application/json" \
  -d '{ "display_name": "Acme Corporation" }'

Verify your setup

Run GET /config again to confirm everything is configured:
{
  "success": true,
  "data": {
    "name": "acme-corp",
    "display_name": "Acme Corporation",
    "status": "active",
    "webhook": {
      "configured": true,
      "url": "https://your-server.com/webhooks/vocobase",
      "secret": "****"
    },
    "telephony": {
      "twilio": {
        "configured": true,
        "account_sid": "ACxx****xxxx",
        "from_number": "+14155551234"
      },
      "mcube": {
        "configured": true,
        "exe_number": "+919876543210"
      }
    }
  }
}
Sensitive values like auth_token, jwt_token, and webhook_secret are always masked in GET /config responses.

Next steps

Quick Start

Create an agent and make your first call.

Webhook Payloads

Understand the data you receive when calls complete.