Require a secret token in your request headers to authenticate the request.
To set up bearer tokens for your site:
You’ll now need to send through an Authorization
header to access the site. This is intended for scripts or machine users. For example:
curl -H "Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" https://example.com/products.json