Webhook sending all API data
# support
s
Hi, is there a way to specify the data i send via my webhook? "maxDurationSeconds" => 600, "phoneNumber" => [ "assistantId" => "##################", "name" => "Disrepair Team", "twilioAccountSid" => "##################", "twilioAuthToken" => "#####################", "twilioPhoneNumber" => "+############", "serverUrl"=> "https://hooks.zapier.com/hooks/catch/####/####/" ],
v
@soc86 Absolutely! To limit the data you send via your webhook, you can specify the
limit
query parameter when setting up your webhook request. This parameter will control the maximum number of items to return. The default is usually set to 100, but you can adjust it according to your needs. For example, if you want to limit the data to 50 items, you would add
?limit=50
to the end of your webhook URL. Here's how you might adjust your `serverUrl`:
Copy code
php
"serverUrl"=> "https://hooks.zapier.com/hooks/catch/####/####/?limit=50"
Remember to replace
50
with the number that suits your requirements. If you need further assistance with setting this up or have any other questions, feel free to ask!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
Hi, can i specify the data i send?
s
specify the data for what?
s
I only want to send the telephone number and transcript via my webhook
s
then use the server event end-of-call-report, check from here: https://docs.vapi.ai/server-url/events#end-of-call-report and check how to set server url from here: https://docs.vapi.ai/server-url/setting-server-urls