title: How to get hostname call my API
body: <p>Eg: <code>website abc.com</code> access my REST API  by link <code>xyz.com/rest/api/order/new
  </code>. In my function, how can I get hostname <code>abc.com</code>?</p>
  
  <p>I want to check the token is matched with the hostname that is saved in the database.</p>