Skip to content

How to create an API key

This article shows you how to create an API key, choose what it’s allowed to do, and change or delete it later.

An API key lets a script, integration or tool, such as the EDS SDK, sign in to the EmailShepherd API. Each key has a set of scopes, which control exactly what it can access.

  1. Navigate to Organization settings > API Keys.

  2. Click Create API key.

    The API Keys page under Organization settings, with the Create API key button

  3. In Name, enter a name that says what the key is for, such as EDS SDK or Transactional emails, so you can recognize it later.

  4. Under Permission scopes, tick the scopes the key needs. See Choose scopes.

  5. Click Create API key.

  6. Copy the token and store it somewhere safe, such as a password manager or your secrets store.

  7. Click Done.

    The API key created successfully dialog, showing the new token

Scopes are grouped by what they give access to, such as Emails, Projects and Image library. Most groups have Read, Write and Delete scopes, and some have extra ones, such as Publish for emails.

Choosing permission scopes when creating an API key

To find a scope quickly, type in Search scopes.

Give each key only the scopes it needs. A key can do exactly what its scopes allow and nothing more, so a key that only reads emails can’t change or delete them.

Each endpoint in the API reference lists the scope it needs.

  1. Navigate to Organization settings > API Keys.
  2. Click the edit icon next to the key.
  3. Change the Name or Permission scopes.
  4. Click Update API key.

The token stays the same, so anything already using the key keeps working with its new scopes.

  1. Navigate to Organization settings > API Keys.
  2. Click the delete icon next to the key.
  3. Confirm that you want to delete it.

To make your first request with your new key, see How to authenticate with the API.