title: Unauthorized endpoint, please check Setup->Security->Remote site settings endpoint
body: <p>I'm unable to send an SMS via Twilio API. I got the exception below:</p>
  
  <blockquote>
    <p><strong>ERROR :</strong> Unauthorized endpoint, please check Setup->Security->Remote site settings endpoint: url</p>
  </blockquote>
  
  <pre><code>global class SampleSMSTest {
      @future(callout=true)
      public static void testsms() {
          try {
              String account = 'xxxxxxxxx';
              String token = 'xxxxxxxxxx';
              TwilioRestClient client = new TwilioRestClient(account, token);
              Map&lt;String, String&gt; params = new Map&lt;String, String&gt; {
                  'To' =&gt; '+91953835xxxx',
                  'From' =&gt; '+1920569xxxx', // twilio registered number
                  'Body' =&gt; 'Hello there!'
              };
              TwilioMessage message = client.getAccount().getMessages().create(params);
          } catch (Exception e) {
              System.debug('Main error==========&gt;' + e);
          }
      }
  }
  </code></pre>