API Key Management

circle-info

💡 This guide explains how to issue and manage API Keys for calling the REST API.

Overview

To call the bkend REST API from your app, you need an API Key. API Keys are managed independently per environment. There are two types: Publishable Keys for client-side use and Secret Keys for server-side use.


Opening the API Keys Page

Click API Keys in the project-level sidebar.

The page is divided into two sections:

Section
Prefix
Usage

Publishable Keys

pk_

Client-side (browser, mobile app) — limited permissions

Secret Keys

sk_

Server-side only — full permissions

API Keys management page

Creating a Publishable Key

  1. In the Publishable Keys section, click the Add Key button.

  2. Enter a name (e.g., my-app-key) and click Create.

  3. The key is created and added to the list.

Create API key dialog
circle-info

💡 Publishable Keys are always visible in the list and can be copied at any time by clicking the key value.


Creating a Secret Key

  1. In the Secret Keys section, click the Add Key button.

  2. Enter a name (e.g., server-key) and click Create.

  3. The full key value is displayed once with a highlight. Copy it immediately.

triangle-exclamation
circle-exclamation

Using an API Key

Include the Publishable Key in the X-API-Key header. Add an Authorization header when authenticated requests are required.


Viewing the API Key List

The API Keys page displays all keys for the current environment.

Displayed Info
Description

Name

Identifying name of the key

Key

Masked key value (click to copy)

Actions

Delete button


Deleting an API Key

  1. Find the key you want to delete in the list.

  2. Click the Delete button.

  3. Enter the key name in the confirmation dialog and click Confirm Delete.

  4. The key is immediately invalidated.

circle-exclamation

Next Steps

Last updated