Create a REST API key in WooCommerce

A REST API key is a separate key just for this connection. You create it in your WooCommerce settings and paste it into Dovetly together with your shop's address. Your password stays with you, the key can't be used to log in to your admin, and you can revoke it at any time.

Before you start

  • Use an Administrator or Shop manager account: the key works with the rights of the user it belongs to, and other roles can't see orders.
  • Your shop has to open with https: WooCommerce takes keys only over a secure connection.
  • Decide what the assistant may do: Read is enough for questions. Read/Write also lets it add private notes to orders and change their status, but only once you switch on Make changes in Dovetly.

Step by step

  1. Open the WooCommerce settings

    Log in to your WordPress admin. In the menu on the left click WooCommerce, then Settings.

    The WordPress admin menu with WooCommerce open and Settings marked
    Screenshot: WooCommerce
  2. Go to REST API keys and add a key

    Open the Advanced tab, click REST API keys under it, then Add key. In a shop without keys the Create an API key button in the middle does the same. Older versions of WooCommerce call the link REST API.

    WooCommerce settings with the Advanced tab, the REST API keys link and the Add key button marked
    Screenshot: WooCommerce
  3. Fill in the key details

    Type a description you'll know later, for example Dovetly. Leave yourself as the user. Under Permissions choose Read/Write if you may switch on changes in Dovetly later, otherwise Read. Then click Generate API key.

    The Key details form with Dovetly as the description, the admin user with its email blurred, Read/Write permissions and the Generate API key button marked
    Screenshot: WooCommerce
  4. Copy the consumer key and the consumer secret

    WooCommerce shows both right away, and the secret only this once. Copy each with its Copy button, or keep the page open while you paste them into Dovetly. If you lose the secret, revoke the key and create a new one.

    The new key with the Consumer key, the Consumer secret and their Copy buttons marked, a QR code and the Revoke key link
    Screenshot: WooCommerce
  5. Paste them into Dovetly

    After you sign up, Dovetly opens the window to connect WooCommerce. Later you find it in All connectors. Fill in the three fields and click Connect.

    • Shop address: the address your customers open, for example myshop.com.
    • Consumer key: the one that starts with ck_.
    • Consumer secret: the one that starts with cs_.
    The Connect WooCommerce window in Dovetly with Shop address, Consumer key and Consumer secret filled in and the Connect button marked
    Screenshot: Dovetly

To revoke it

In WooCommerce open Settings, Advanced, REST API keys, point at the Dovetly key and click Revoke. The connector can't read your shop from that moment. Your other keys keep working.

If it doesn't work

  • Dovetly says WooCommerce didn't accept the key: check that you copied both values whole. If it still fails, create a new key: the secret is shown only once.
  • Dovetly mentions permalinks: in WordPress open Settings, Permalinks and choose any option except Plain, or update WooCommerce.
  • Dovetly says your shop blocks outside access: a security plugin or your hosting may switch off the REST API. Look for that setting in the plugin, or ask your hosting. Message us and we'll look at it with you.
  • Your assistant says the key only has Read access, or no Read access: in WooCommerce open Settings, Advanced, REST API keys, click the Dovetly key and set Permissions to Read/Write. You don't need to connect again.
  • Your assistant says the key's user may not see something: on the same page choose an Administrator or Shop manager as the key's User and save it.

Related