title: Consumer is not authorized to access %resources for rest API Magento 2
body: <p>I created a new customer and got the token perfectly but when I try to access any API like </p>
  
  <pre><code>http://myhost.com/index.php/rest/V1/customers/me?Authorization=Bearerhy23vc01x9s1jd2t8gho47g58trllc0b 
  </code></pre>
  
  <p>got the error </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;response&gt;
  &lt;message&gt;Consumer is not authorized to access %resources&lt;/message&gt;
  &lt;parameters&gt;
  &lt;resources&gt;self&lt;/resources&gt;
  &lt;/parameters&gt;
    &lt;trace&gt;#0 /var/www/myhost.com/public_html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(70): Magento\Webapi\Controller\Rest\RequestValidator-&amp;gt;checkPermissions()
  #1 /var/www/myhost.com/public_html/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(80): Magento\Webapi\Controller\Rest\RequestValidator-&amp;gt;validate()
  #2 /var/www/myhost.com/public_html/vendor/magento/module-webapi/Controller/Rest.php(299): Magento\Webapi\Controller\Rest\InputParamsResolver-&amp;gt;resolve()
  #3 /var/www/myhost.com/public_html/vendor/magento/module-webapi/Controller/Rest.php(216): Magento\Webapi\Controller\Rest-&amp;gt;processApiRequest()
  #4 /var/www/myhost.com/public_html/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest-&amp;gt;dispatch(Object(Magento\Framework\App\Request\Http))
  #5 /var/www/myhost.com/public_html/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor-&amp;gt;dispatch(Object(Magento\Framework\App\Request\Http))
  #6 /var/www/myhost.com/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http-&amp;gt;launch()
  #7 /var/www/myhost.com/public_html/index.php(39): Magento\Framework\App\Bootstrap-&amp;gt;run(Object(Magento\Framework\App\Http))
  #8 {main}&lt;/trace&gt;
  &lt;/response&gt;
  </code></pre>