Bee Pre OrderDocsLive demo

Guide 09 of 12

API and AI assistants

Manage the app from code, or connect Claude or Codex over MCP.

On the Pro plan, manage campaigns and back in stock from your own code, or let an AI assistant like Claude or Codex set things up for you.

Create a token

  1. Go to Settings → API access.
  2. Name the token and click Create token.
  3. Copy it now: it’s shown once. Only a fingerprint of it is stored.

Revoke a token from the same table to stop it working immediately. Each token only works for the shop that created it.

REST API

Base URL https://bpo.beecreative.pk/api/v1. Send the token in the Authorization header:

curl https://bpo.beecreative.pk/api/v1/campaigns \
  -H "Authorization: Bearer YOUR_TOKEN"
Method and pathWhat it does
GET /shopCurrency, campaign count, whether back in stock is on.
GET /campaignsEvery campaign.
GET /campaigns/{id}One campaign.
POST /campaignsCreate a campaign.
PATCH /campaigns/{id}Change a campaign. Only the fields you send change; sending variants replaces the whole list.
GET /restock/settingsBack in stock settings.
PATCH /restock/settingsChange back in stock settings.
GET /restock/waitingHow many people are waiting per variant (no addresses).
GET /balancesPre-orders and their balances.

The full field reference is at https://bpo.beecreative.pk/api/v1/skill.md. Errors use the usual status codes: 400 or 422 for invalid input, 401 for a missing or wrong token, 403 when your plan doesn’t include the API, 404 for an unknown campaign, and 409 when a variant is already in another active campaign.

Connect Claude or Codex (MCP)

The MCP endpoint is https://bpo.beecreative.pk/mcp. Use the same token.

Claude Code

claude mcp add --transport http bee-pre-order https://bpo.beecreative.pk/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"

Codex

In ~/.codex/config.toml:

[mcp_servers.bee_pre_order]
url = "https://bpo.beecreative.pk/mcp"
http_headers = { Authorization = "Bearer YOUR_TOKEN" }

Claude on the web or desktop

Settings → Connectors → Add custom connector, with the MCP URL and the token as an Authorization header.

Tools

get_shop, list_campaigns, get_campaign, create_campaign, update_campaign, get_restock_settings, update_restock_settings, list_waiting_list, list_balances.

Then ask in plain words, for example: “Create a pre-order campaign for the Aurora Headphones with a 20% deposit, balance due on December 1st.”