Adrian
09/12/2025, 1:34 AMVapi Support Bot
09/12/2025, 1:34 AMAdrian
09/12/2025, 1:35 AM✞Penclone
09/12/2025, 2:56 PMChiranjeet Mishra
09/15/2025, 9:57 PMcredentialId you want to use for each call or tool.
// Example API approach (based on typical OAuth2 patterns)
// 1. Create credentials for each Google account
POST /api/credentials
{
"type": "google-calendar",
"name": "Business A Calendar",
"oauth2": {
"accessToken": "...",
"refreshToken": "...",
"clientId": "...",
"clientSecret": "..."
}
}
// 2. Associate credentials with specific assistants
PUT /api/assistants/{assistantId}
{
"tools": [
{
"type": "googleCalendar",
"credentialId": "credential-id-for-business-a"
}
]
}