Provide Twilio TwiML in HTTP payload?

140 views Asked by At

To make an outbound call with Twilio, you need to provide a URL with TwiML information. Does anyone know if it is possible to provide said TwiML as part of the request so that no TwiML URL is required? That would allow for more more dynamic requests without having to worry about providing pre-defined TwiML URLs

1

There are 1 answers

1
Devin Rader On BEST ANSWER

Twilio evangelist here.

There is no way to send the TwiML as part of the POST to the Twilio API, you have to provide a URL for Twilio to request once the outbound call is answered.

You can provide a single URL that dynamically generates a TwiML response based on the parameters that Twilio sends as part of its HTTP request.

Hope that helps.