Pullbox

Build on Pullbox

Run pull lists, pickups and customers from your own code or an AI agent, and hear about changes the moment they happen. Everything here works for one store at a time.

1. Create an API key

The store owner signs in and opens Settings → Connections → API keys, names the key (one per tool) and copies it. Keys start with pbk_live_ and are shown once. Turn a key off there at any time; it stops working immediately.

Send it on every request as Authorization: Bearer pbk_live_…. Never put a key in a web page or an app a customer can download.

2. REST API

Base URL: https://pullbox-mu.vercel.app/api/v1. JSON in and out, snake_case fields. Lists come back as { data, next_cursor }, up to 50 per page; pass next_cursor back unchanged as cursor (it is null on the last page).

Errors are { error: { code, message, details? } } with a matching HTTP status. Send an Idempotency-Key header on creates so a retry never makes a second pull list or endpoint.

MethodPathWhat it doesBody / query
GET/storeYour store: name, plan, pickup address and windownone
GET/listsPull lists, newest firstquery status, cursor, limit
POST/listsCreate a pull list; create as draft, add items, then open{ name, description?, status?, opens_at?, closes_at?, slug? }
GET/lists/{id}One pull list with items and reservation countsnone
PATCH/lists/{id}Open, close or revert to draft{ status: "draft" | "open" | "closed" }
POST/lists/{id}/readyTell shoppers a closed pull list is ready (emails them)none
POST/lists/{id}/cancelCancel a pull list: cancels reserved pulls, returns stock, closes it, emails shoppersnone
POST/lists/{id}/itemsAdd up to 100 items, typed in or from your POS catalog{ items: [{ name, quantity, price?, description?, max_per_reservation?, fields? } | { catalog_id, allocate?, variant_allocations?, fields? }] }
PATCH/lists/{id}/items/{itemId}Change an item quantity or its product field values{ quantity?, fields? }
POST/items/{id}/refreshUpdate from POS: re-copy details, never the allocationnone
GET/catalog/searchSearch the connected POS catalog (owners, managers, keys)query q, cursor
POST/catalog/check | /catalog/healthCheck POS stock status now; test the POS connectionnone
GET/fieldsThe store product fields (weight, set number, …)none
POST/fieldsAdd a product field{ label, type, key?, unit?, options?, required?, shown_to_shoppers?, pos_source? }
PATCH/fields/{id}Edit a product field (key and type are fixed){ label?, unit?, options?, required?, shown_to_shoppers?, pos_source? }
DELETE/fields/{id}Delete a field and its values on itemsnone
POST/fields/reorder | /fields/starterReorder fields; add a starter set{ field_ids } | { set }
GET/lists/{id}/reservationsReservations on one pull listquery status, cursor, limit
GET/reservationsReservations, newest firstquery list_id, status, cursor, limit
POST/reservations/{id}/claim | cancel | resendPickup, cancel (stock returns), resend the codecancel: { reason?: "customer" | "store" | "no_show" | "list_cancelled" }
POST/reservations/claimClaim many at once{ reservation_ids: [uuid, …] } (1-100)
POST/reservations/cancelCancel many at once (no-shows){ reservation_ids: [uuid, …], reason?: "store" | "no_show" }
GET/customers, /customers/{id}Registered customers of the store, A-Z by emailquery email, cursor, limit
PUT/customers/{id}/membershipAssign a membership tier{ tier_id }
POST/customers/{id}/missed-pickups/clearReset a customer's missed pickups to 0 (any staff seat)none
GET/missed-pickupsCustomers with missed pickups, and the store's rulesnone
PUT/missed-pickups/settingsMissed pickup limit, action and window (owners and managers){ limit?: null | 2 | 3 | 5, action?: "flag" | "pause", window_days?: 30 | 60 | 90 | 180 }
GET/tiersMembership tiersnone
GET/webhooksWebhook endpoints (owners and keys only)none
POST/webhooksAdd an endpoint; the secret is in this response only{ url, events? }
DELETE/webhooks/{id}Remove an endpointnone
POST/webhooks/{id}/testSend a webhook.test event nownone
curl https://pullbox-mu.vercel.app/api/v1/lists?status=open \
  -H "Authorization: Bearer $PULLBOX_API_KEY"

3. MCP servers for agents

Store server: https://pullbox-mu.vercel.app/api/mcp. Streamable HTTP. Sign in with OAuth (Claude.ai does this for you) or send an API key as a bearer token. Tools cover pull lists, items, reservations, customers, tiers and webhooks.

Public server: https://pullbox-mu.vercel.app/api/mcp/public. No sign-in. Two tools for shoppers’ agents: lookup_reservation (confirmation code + email) and follow_store (new pull list alerts by email).

4. Connect Claude

Claude.ai:

  1. Open Settings → Connectors and choose Add custom connector.
  2. Name it Pullbox and paste https://pullbox-mu.vercel.app/api/mcp.
  3. Choose Connect, sign in to Pullbox as the store owner and choose Allow.
  4. Ask: “What pull lists are open?”

Claude Code:

claude mcp add --transport http pullbox https://pullbox-mu.vercel.app/api/mcp \
  --header "Authorization: Bearer <your key>"

5. Webhooks

Add an endpoint in Settings → Connections → Webhooks or with POST /api/v1/webhooks { "url": "https://…", "events": ["list.opened"] }. Leave events empty to get every event. The URL must be public https; localhost and private network addresses are refused. The response includes the signing secret (whsec_…), shown once.

Each event is a POST with a JSON body { id, type, created_at, store_id, data } and the headers Pullbox-Event, Pullbox-Delivery (the delivery id), Pullbox-Signature and User-Agent: Pullbox-Webhooks/1. Answer with any 2xx within 5 seconds. Payloads carry ids only, never a customer’s name, email or phone; fetch details from the REST API with your key.

list.opened

A pull list opened for reservations (from the dashboard, the API, MCP or creation as open).

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "list.opened",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "list_id": "3f6c1d2e-8b7a-4c55-9d10-2a4b6c8d0e1f"
  }
}

list.closed

A pull list closed: by hand, by the daily auto-close after its close time or because it was cancelled.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "list.closed",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "list_id": "3f6c1d2e-8b7a-4c55-9d10-2a4b6c8d0e1f"
  }
}

list.ready

The store marked a closed pull list ready for pickup.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "list.ready",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "list_id": "3f6c1d2e-8b7a-4c55-9d10-2a4b6c8d0e1f"
  }
}

reservation.created

A shopper reserved from a pull list, or staff added a walk-in. One event per checkout; each item is its own reservation.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "reservation.created",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "list_id": "3f6c1d2e-8b7a-4c55-9d10-2a4b6c8d0e1f",
    "reservation_ids": [
      "9a1b2c3d-4e5f-4061-8a7b-1c2d3e4f5a6b"
    ],
    "items": [
      {
        "reservation_id": "9a1b2c3d-4e5f-4061-8a7b-1c2d3e4f5a6b",
        "item_id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
        "sku_id": null,
        "quantity": 2
      }
    ],
    "customer_id": "7c8d9e0f-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
    "source": "customer_page"
  }
}

reservation.claimed

A reservation was picked up at the counter or marked claimed through the API.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "reservation.claimed",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "reservation_id": "9a1b2c3d-4e5f-4061-8a7b-1c2d3e4f5a6b",
    "list_id": "3f6c1d2e-8b7a-4c55-9d10-2a4b6c8d0e1f"
  }
}

reservation.cancelled

A reservation was cancelled and its units went back to stock. reason is store, customer, no_show or list_cancelled.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "reservation.cancelled",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "reservation_id": "9a1b2c3d-4e5f-4061-8a7b-1c2d3e4f5a6b",
    "list_id": "3f6c1d2e-8b7a-4c55-9d10-2a4b6c8d0e1f",
    "item_id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
    "reason": "no_show"
  }
}

follower.created

Someone started following the store for new pull list alerts. source is customer_page, public_mcp or api.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "follower.created",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "follower_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
    "source": "customer_page"
  }
}

webhook.test

Sent when you press Send test. Safe to ignore.

{
  "id": "0b6f2c1e-5d4a-4f3b-9c2d-1e0f9a8b7c6d",
  "type": "webhook.test",
  "created_at": "2026-11-17T18:04:05.123Z",
  "store_id": "a8c0216d-6c5d-487c-ac9f-7131c489d647",
  "data": {
    "message": "This is a test webhook from Pullbox."
  }
}

6. Verify the signature

Pullbox-Signature: t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256 of `${t}.${raw body}` keyed with your endpoint’s secret. Compare in constant time and reject stamps more than five minutes old.

// Node 18+, Express-style handler. Use the RAW body, not re-serialized JSON.
const crypto = require('crypto')

function verifyPullbox(rawBody, header, secret, toleranceSec = 300) {
  if (typeof header !== 'string') return false // no Pullbox-Signature header
  const parts = Object.fromEntries(header.split(',').map(p => p.trim().split('=')))
  const t = Number(parts.t)
  if (!t || !parts.v1 || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest()
  const given = Buffer.from(parts.v1, 'hex')
  return given.length === expected.length && crypto.timingSafeEqual(given, expected)
}

app.post('/pullbox-webhook', express.raw({ type: 'application/json' }), (req, res) => {
  const ok = verifyPullbox(req.body.toString('utf8'), req.get('Pullbox-Signature'), process.env.PULLBOX_WEBHOOK_SECRET)
  if (!ok) return res.status(400).end()
  const event = JSON.parse(req.body)
  // Deliveries can repeat: de-duplicate on event.id (or the Pullbox-Delivery header).
  res.status(200).end()
})

7. Retries

No 2xx within 5 seconds? We retry once a day, up to 5 times, then mark it failed. An hour of downtime means the event arrives the next day. Events can repeat, so de-duplicate on id. Settings shows each endpoint’s last result.

8. Rate limits

  • REST and the store MCP server: 60 requests per minute per key (or per signed-in OAuth user).
  • Public MCP server: 20 requests per minute per IP address.
  • Over the limit you get HTTP 429 with code rate_limited and a Retry-After header (seconds). Responses carry X-RateLimit-Limit and X-RateLimit-Remaining when known.

9. Full guide: MCP tools

Store server tools (bearer key or OAuth) and the two public tools. Arguments are strict: unknown keys are rejected. Dates are ISO 8601 with an offset. Errors come back as { error: { code, message } } with isError: true.

ToolWhat it doesArguments
get_storeThe store this credential belongs tonone
list_listsPull lists, newest firststatus?, cursor?, limit?
create_listNew pull list (draft by default)name, description?, status?, opens_at?, closes_at?, slug?
get_listOne pull list with items and countslist_id
set_list_statusOpen, close or revert to draft (opening alerts followers)list_id, status
mark_list_readyTell shoppers a closed pull list is readylist_id
add_itemsAdd 1-100 items, typed in or from the POS cataloglist_id, items[] (name, quantity | catalog_id, allocate or variant_allocations; fields?)
update_item_quantitySet an item total quantityitem_id, quantity
list_reservationsPulls, newest firstlist_id?, status?, cursor?, limit?
claim_reservationMark picked upreservation_id
cancel_reservationCancel, stock returnsreservation_id, reason? (store | no_show)
resend_codeEmail the code againreservation_id
list_customersRegistered customers, A-Z by emailemail?, cursor?, limit?
get_customerOne customer + 10 latest reservations + missed pickupscustomer_id
list_tiersMembership tiersnone
assign_tierGive or replace a customer tiertier_id, customer_id or customer_email
clear_missed_pickupsReset a customer's missed pickups to 0customer_id
search_catalogSearch the store POS catalog, with on-handq?, cursor?
list_fieldsThe store product fields; call before add_itemsnone
list_webhooksEndpoints and last deliverynone
create_webhookRegister an https URL (secret shown once)url, events?
delete_webhookRemove an endpointwebhook_id
lookup_reservation (public)Status of one reservationcode (or confirmation_code), email
follow_store (public)Sign up for new pull list alertsstore_id, email, phone?
  • A “pull list” in the app is list in the API.
  • Opening a pull list emails its followers; marking ready and cancelling a pull list email shoppers. Test on a store with no real followers.
  • Only status can change on a pull list. Reopening a ready pull list clears ready_at.
  • Claimed pulls cannot be cancelled and cancelled pulls cannot be claimed; repeating a claim or cancel is a no-op.
  • A webhook signing secret is shown once. A replayed create returns secret_shown: false instead of the secret.

Terms · Privacy