No credential is explicitly assigned to this phone...
# support
d
When I set the server url for a phone number, it gives me this message: No credential is explicitly assigned to this phone number. Your organization's default server credential will be used automatically. Where are the organization's credentials?
v
You can find your organization's default server credentials in the organization section of the Vapi dashboard: 1. Go to [https://dashboard.vapi.ai/vapi-api](https://dashboard.vapi.ai/vapi-api) 2. Look for the Server URL and credential settings in this section. This is where organization-wide credentials are managed and will be used by default if no specific credential is assigned to a phone number. For more details, see the [Vapi documentation on setting server URLs](https://docs.vapi.ai/server-url/setting-server-urls). Source: - [Setting server URLs](https://docs.vapi.ai/server-url/setting-server-urls)
d
I figured it out. I you have one server configuration in the Integrations, it uses that one by default, everywhere.
c
Hi, The
credential_id
for SIP configuration is not found in Organization Settings or Custom Credentials in the dashboard. It's generated when you create a SIP trunk credential via the Vapi API. Here's how to get your credential_id: Step 1: Create a SIP Trunk Credential via API
Copy code
curl -X POST "https://api.vapi.ai/credential" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Your SIP Trunk Name",
    "gateways": [{
      "ip": "your-sip-provider-domain.com",
      "inboundEnabled": false
    }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
Replace: •
YOUR_VAPI_PRIVATE_KEY
with your API key from Organization Settings > API Keys •
your-sip-provider-domain.com
with your SIP provider's domain (e.g.,
sip.zadarma.com
,
sip.telnyx.com
) •
YOUR_SIP_USERNAME
and
YOUR_SIP_PASSWORD
with your SIP credentials Step 2: Get the Credential ID from the Response The API response will return an
id
field—**this is your credential_id**:
Copy code
{
  "id": "d293b924-f68d-4cbc-850f-xxxxxxxxxxxxx",
  "provider": "byo-sip-trunk",
  "name": "Your SIP Trunk Name",
  ...
}
Step 3: Use in Your SIP URI Use that ID in the format:
{your_phone_number}@{credential_id}.sip.vapi.ai
Example:
15551234567@d293b924-f68d-4cbc-850f-xxxxxxxxxxxxx.sip.vapi.ai
Full documentation: [https://docs.vapi.ai/advanced/sip/sip-trunk](https://docs.vapi.ai/advanced/sip/sip-trunk) Let me know if you need help with any of these steps!