0

I am trying to use php on my website to be able to dynamically buy and set up new phone numbers as well as release them. I have had no problems finding documentation on buying new phones through php, or releasing them, however I can not find a way to set the webhooks. I need a way to set the messaging webhook from my website otherwise it does me no good. Hopefully you can help.

Ken White
  • 123,280
  • 14
  • 225
  • 444
Jacob
  • 213
  • 1
  • 3
  • 11

1 Answers1

0
         $this->client->incomingPhoneNumbers->create([
            'phoneNumber' => $twilioPhoneNumber,
            "smsUrl" => "abc.com/api/twilio_webhook",
          ]);

while you are buying a number with 'smsUrl' parameter you can set your webhook URL programmatically