.Net - change URL used by TwilioClient


First time Twilio user.

I have a Flow in Twilio that I am able to call successfully from my .net code, using the Rest API.

So I have something like the following that works


TwilioClient.Init(accountSid, authToken);

// lookup phone number info

var type = new List<string>




var phonenumber = PhoneNumberResource.Fetch(

  type: type,

  pathPhoneNumber: new Twilio.Types.PhoneNumber("+1**********"));


My company needs us to go through Apigee for Security. We configure an Apigee URL that maps to a Twilio URL. And my application should refer to the Apigee URL instead of the Twilio URL directly.

So my question is, where can I change the URL used by TwilioClient, so I can point it to my Apigee URL?




  • Hi @chayag , Welcome to Twilio! Twilio community manager here, I'd be happy to help you find a solution. Your best bet is to head over to the Twilio Collectives on Stack Overflow and ask your question there. There is a community of 1000 members that can help you! If you can't find help there I would head over to our Twilio Support page for further assistance.

    For your knowledge, Twilio Forums will be transitioning to Twilio Collectives and we will no longer be answering questions here. Please let me know if you have any questions or concerns about this transition.

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support