# Quick Start

Make your first request to the View REST API in minutes!

This API is intended for client-side use and is read-only.

## Local Development

### Authentication Token <a href="#get-your-okendo-user-id" id="get-your-okendo-user-id"></a>

Every instance of Mercury generates a token that can be passed to Mercury to fetch a respective stores content from anywhere.

Visit the settings area of Mercury to see your BypassToken.

In production apps, approved domain names are used to fetch a store's content, but a token can also be specified.

{% hint style="danger" %}
Bypass Tokens are useful for local development - however, abuse of a token will result in it being removed and a new token generated.

Production Mercury relies on the Origin verification method over the token method
{% endhint %}

### Make Your First Request <a href="#make-your-first-request" id="make-your-first-request"></a>

To make your first request, send a request to the `/search` endpoint. This will fetch some of your published `products`.

To make the request, use a networking client of your choice or follow this example using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API):

```
fetch('https://mercury.plutocracy.io/search/{term}?' + new URLSearchParams({
    bypassToken: 'your token'
}))
  .then(response => response.json())
  .then(data => console.log(data));
```

**Got it working? Nice!**

Do something cool with your newfound powers.

**Struggle city?**

[Send Help](https://docs.plutocracy.io/plutocracy/working-with-plutocracy/support), We're here to make it easy, our chat is manned by people who can answer your problem on the spot.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Search</td><td>Learn how Mercury Search can be customised to meet your merchant's particular requirements</td><td></td><td><a href="broken-reference">Broken link</a></td></tr><tr><td>Collections</td><td>Super speedy collections with configurable Facets and Inline Merchandising</td><td></td><td><a href="broken-reference">Broken link</a></td></tr><tr><td>Products</td><td>Pulling products from our latency optimised products</td><td>No GraphQL required</td><td><a href="broken-reference">Broken link</a></td></tr><tr><td>Endpoints</td><td>Get the skinny on every endpoint available to you.</td><td></td><td><a href="endpoints">endpoints</a></td></tr></tbody></table>
