Unable to remove custom credential.
# support
t
Hi @Vapi @Kings_big💫 I added a custom credential but keep getting the error “key doesn’t allow assistantid “…”” When I try to remove .. via dashboard ui - after publishing the credential is still linked. … via api - after sending the patch request without the credentialID, the credential is still found in the response payload.
@Vapi need help!
c
Hi timmmmmo, To handle the removal of custom credentials, ensure you are using the correct endpoint and payload structure. Here’s a general guide on setting up or modifying your custom credentials with OAuth2: 1. **Creating a Credential**:Use
CreateCustomLLMCredentialDTO
or
CreateWebhookCredentialDTO
with the following payload to create or authenticate a credential:
Copy code
json
   {
     "provider": "custom-llm",
     "apiKey": "your-api-key",
     "authenticationPlan": {
       "type": "oauth2",
       "url": "https://your-url.com/your/path/token",
       "clientId": "your-client-id",
       "clientSecret": "your-client-secret"
     },
     "name": "your-credential-name"
   }
Refer to [this link](https://docs.vapi.ai/changelog/2024/12/6) for more detailed schema information. 2. **Removing a Credential**:Ensure you are accessing the correct endpoint or interface in your dashboard to delete credentials. Generally, this can be done through the API or admin settings depending on your system's setup. If you're still facing issues, ensure your access configurations are correct or try resetting your authentication session. Let me know if you need more detailed steps or further assistance.
t
@User i created a new assistant with zero credentials set but i still can’t make the call. I’m still getting the “key doesn’t allow ….” Message.
c
Hi, could you please create a loom screen recording so we can confirm the issue and reproduce the issue on our side?
3 Views