Restrict Call Access
# support
d
How to restrict call access for particular phone number or assistnatid using API?
v
@Dwayne To restrict call access for a particular phone number or assistant ID using the VAPI, you would typically need to update the configuration settings on your VAPI dashboard or through an API endpoint that allows you to manage access controls. However, VAPI does not provide a direct function to restrict call access via an API call in the context provided. You would need to manage such restrictions within your own application logic or through the VAPI dashboard's security settings. If you need to implement this programmatically, you might consider setting up a middleware in your application that checks the
phoneNumberId
or
assistantId
against a list of restricted IDs before making a call to the
/call/phone
endpoint. If the ID is on the restricted list, you can block the call from proceeding. If there is a specific API endpoint or function provided by VAPI for managing access controls that is not mentioned in the context, please refer to the official VAPI documentation or ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.