Reference a credential by its ID anywhere a server object is used.
In an assistant:
{
"server": {
"url": "https://api.example.com/webhook",
"credentialId": "cred_bearer_auth_123"
}
}
In a phone number:
{
"phoneNumber": "+1234567890",
"server": {
"url": "https://api.example.com/calls",
"credentialId": "cred_oauth_456"
}
}
In a tool:
{
"type": "function",
"function": { "name": "get_weather" },
"server": {
"url": "https://api.example.com/weather",
"credentialId": "cred_hmac_789"
}
}
The same credential ID can be reused across multiple assistants, phone numbers, and tools.