I'm looking to create a Twilio Conference through the rest API. And I'm not sure how to start the conference. I'd prefer to do this without the SDK.
Heres the flow that I'm looking for.
- In browser I enter a phone number to be called and click a call button.
- A request is sent to my server. I handle my back end logic.
- In PHP the rest API is used to hit Twilio and start a conference. (Hopefully connect the initial user via JS Client in this request)
- Once the connection is established use the callback request to add a phone number to the conference.
I have used rest for outbound calls but I can't figure out how to set up a conference.
For outbound calls I use the rest endpoint https://api.twilio.com/version/Accounts/account/Calls.JSON What would the endpoint be for creating a conference and adding the client?
I found https://api.twilio.com/version/Accounts/account/confrences.JSON but it seems to be geared toward get requests for pulling data about conferences not creating an outbound conference.