Skip to content

How do I create an API key?

Updated · API

An API key lets your own code read your stores and reviews. Each key shows once, when you create it.

Create a key

  1. In the sidebar, under Connect, open API keys.
  2. Select Create key.
  3. Enter a Name for the app that will use it.
  4. Under Scopes, check only what the app needs.
  5. Select Create key, then copy the key. It shows only this once.

Scopes

  • Read account (me:read)
  • Read your stores (store:read)
  • Read your reviews (store:reviews)
  • Send orders (store:orders)
  • Send your catalog (store:catalog)
  • Report your integration (store:write)
  • WordPress plugin (plugin:auth)

Calls that change something need a write scope: Send orders, Send your catalog, or Report your integration. A key with WordPress plugin belongs to one store, so you also pick a Store. Read the vendor directory, Read all reviews, and Send partner reports are for partner accounts.

Use the key

Send your key as Authorization: Bearer pk_live_… or as X-Api-Key. Public keys start with pk_live_, store keys with sk_live_, and plugin keys with prp_. Every key is a secret: call the API from your server, never from a browser. Every endpoint lives under https://pepreviewpro.com/api/v1. The full reference, with curl and TypeScript examples, is the API reference. API docs, under Connect in the sidebar, opens it.

Change or revoke a key

In API keys, open a key's menu and select Edit scopes or Revoke. A revoked key stops working right away.

Was this helpful?

Still need help?

Send us a message and a person on our team will reply by email.

Contact us