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

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.

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

Make Your First Request

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:

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, We're here to make it easy, our chat is manned by people who can answer your problem on the spot.

Last updated