manos
11/09/2025, 9:41 AMChiranjeet Mishra
11/09/2025, 9:41 AMVapi Support Bot
11/09/2025, 9:42 AMjson
{
"server": {
"url": "https://your-server.com/webhook",
"credentialId": "cred_oauth_xyz789"
}
}
Create the OAuth 2.0 credential in the Vapi dashboard and reference its ID as shown above. Vapi will handle token fetching and refreshing automatically for all subsequent API calls ([see docs](https://docs.vapi.ai/server-url/server-authentication#create-oauth-20-credential)).
Source:
- [Server authentication](https://docs.vapi.ai/server-url/server-authentication)manos
11/09/2025, 9:45 AM