Assistant request event is not emitted
# support
e
Hi Vapi Team, I’m implementing a whitelist of phone numbers and following this doc: https://docs.vapi.ai/server-url/spam-call-rejection It mentions checking whether a number is whitelisted via the assistant-request event, but I don’t see this event being emitted on my end (see attached logs). Is this expected, or am I missing something? https://cdn.discordapp.com/attachments/1468274434992246997/1468274435415867568/image.png?ex=69836ca0&is=69821b20&hm=59fdc1406e10c0b180378fccea94054ead0206484c9b761b207c0207c5876040&
v
To ensure the
assistant-request
event is emitted, remove any fixed assistant assignment from your phone number's inbound settings in the Vapi dashboard. This allows Vapi to trigger your Server URL and request the assistant dynamically. Example: 1. Go to your phone number settings. 2. Set the "Assistant" dropdown to empty or none. 3. Save changes and test your webhook. This should enable the event as described in the [documentation](https://docs.vapi.ai/server-url/spam-call-rejection). Source: - [Spam call rejection](https://docs.vapi.ai/server-url/spam-call-rejection)
v
Message marked as helpful by @Ermek! 🎉
@Vapi Support Bot Any insights?
v
If the dashboard does not let you clear the assistant assignment, you can use the API to update your phone number and remove the
assistantId
. For example, using cURL:
Copy code
bash
curl -X PATCH "https://api.vapi.ai/v1/phone-numbers/{your_number_id}" \
  -H "Authorization: Bearer {your_api_key}" \
  -H "Content-Type: application/json" \
  -d '{ "assistantId": null }'
This should enable the
assistant-request
event as described in the [documentation](https://docs.vapi.ai/server-url/spam-call-rejection). Source: - [Spam call rejection](https://docs.vapi.ai/server-url/spam-call-rejection)
c
You can do it via dashboard too, just click the selected assistant again from dropdown and it'll un-select the assistant