Marios
04/28/2026, 7:09 AMMatt
04/28/2026, 7:50 AMChiranjeet Mishra
04/28/2026, 8:15 AMcredentialId when creating a phone number in Vapi. While I can't see exactly where to find it in the dashboard interface, I can definitely explain what it is and how it's typically obtained.
The credentialId is an identifier for authentication credentials used when creating a phone number in Vapi. According to the [documentation](https://docs.vapi.ai/api-reference/phone-numbers/create#response.body.telnyx.credentialId), it's used to configure the number for sending inbound calls to Vapi, making outbound calls, and performing live call updates like transfers and hangups.
Here's what I found about how the credentialId relates to the API key:
1. The API key is used for authentication when creating credentials in Vapi. When you make API calls to create credentials, you include your API key in the Authorization header.
2. The credentialId is generated when you create a credential via the API. According to the information I found, when you create a credential using the /credential endpoint, the response includes an id field, which is the credentialId you need:
{
"id": "credential_id",
"provider": "byo-sip-trunk",
"name": "My SIP Trunk",
...
}
1. For Telnyx specifically, you would create a SIP Trunk Credential using a curl command like:
curl -X POST https://api.vapi.ai/credential \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-vapi-private-api-key" \
-d '{
"provider": "byo-sip-trunk",
"name": "Telnyx Trunk",
"gateways": [
{
"ip": "sip.telnyx.com"
}
]
}'
The response from this API call will contain the credentialId that you'll need when creating a phone number.
Ref: https://docs.vapi.ai/advanced/sipMarios
04/28/2026, 8:26 AMMarios
04/28/2026, 8:28 AMMarios
04/28/2026, 9:19 AMChiranjeet Mishra
05/04/2026, 3:14 PM