
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.
| Method | Path | What it does | Body / query |
|---|---|---|---|
| GET | /store | Your store: name, plan, pickup address and window | none |
| GET | /lists | Pull lists, newest first | query status, cursor, limit |
| POST | /lists | Create 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 counts | none |
| PATCH | /lists/{id} | Open, close or revert to draft | { status: "draft" | "open" | "closed" } |
| POST | /lists/{id}/ready | Tell shoppers a closed pull list is ready (emails them) | none |
| POST | /lists/{id}/cancel | Cancel a pull list: cancels reserved pulls, returns stock, closes it, emails shoppers | none |
| POST | /lists/{id}/items | Add 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}/refresh | Update from POS: re-copy details, never the allocation | none |
| GET | /catalog/search | Search the connected POS catalog (owners, managers, keys) | query q, cursor |
| POST | /catalog/check | /catalog/health | Check POS stock status now; test the POS connection | none |
| GET | /fields | The store product fields (weight, set number, …) | none |
| POST | /fields | Add 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 items | none |
| POST | /fields/reorder | /fields/starter | Reorder fields; add a starter set | { field_ids } | { set } |
| GET | /lists/{id}/reservations | Reservations on one pull list | query status, cursor, limit |
| GET | /reservations | Reservations, newest first | query list_id, status, cursor, limit |
| POST | /reservations/{id}/claim | cancel | resend | Pickup, cancel (stock returns), resend the code | cancel: { reason?: "customer" | "store" | "no_show" | "list_cancelled" } |
| POST | /reservations/claim | Claim many at once | { reservation_ids: [uuid, …] } (1-100) |
| POST | /reservations/cancel | Cancel many at once (no-shows) | { reservation_ids: [uuid, …], reason?: "store" | "no_show" } |
| GET | /customers, /customers/{id} | Registered customers of the store, A-Z by email | query email, cursor, limit |
| PUT | /customers/{id}/membership | Assign a membership tier | { tier_id } |
| POST | /customers/{id}/missed-pickups/clear | Reset a customer's missed pickups to 0 (any staff seat) | none |
| GET | /missed-pickups | Customers with missed pickups, and the store's rules | none |
| PUT | /missed-pickups/settings | Missed pickup limit, action and window (owners and managers) | { limit?: null | 2 | 3 | 5, action?: "flag" | "pause", window_days?: 30 | 60 | 90 | 180 } |
| GET | /tiers | Membership tiers | none |
| GET | /webhooks | Webhook endpoints (owners and keys only) | none |
| POST | /webhooks | Add an endpoint; the secret is in this response only | { url, events? } |
| DELETE | /webhooks/{id} | Remove an endpoint | none |
| POST | /webhooks/{id}/test | Send a webhook.test event now | none |
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:
- Open Settings → Connectors and choose Add custom connector.
- Name it Pullbox and paste
https://pullbox-mu.vercel.app/api/mcp. - Choose Connect, sign in to Pullbox as the store owner and choose Allow.
- 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_limitedand aRetry-Afterheader (seconds). Responses carryX-RateLimit-LimitandX-RateLimit-Remainingwhen 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.
| Tool | What it does | Arguments |
|---|---|---|
| get_store | The store this credential belongs to | none |
| list_lists | Pull lists, newest first | status?, cursor?, limit? |
| create_list | New pull list (draft by default) | name, description?, status?, opens_at?, closes_at?, slug? |
| get_list | One pull list with items and counts | list_id |
| set_list_status | Open, close or revert to draft (opening alerts followers) | list_id, status |
| mark_list_ready | Tell shoppers a closed pull list is ready | list_id |
| add_items | Add 1-100 items, typed in or from the POS catalog | list_id, items[] (name, quantity | catalog_id, allocate or variant_allocations; fields?) |
| update_item_quantity | Set an item total quantity | item_id, quantity |
| list_reservations | Pulls, newest first | list_id?, status?, cursor?, limit? |
| claim_reservation | Mark picked up | reservation_id |
| cancel_reservation | Cancel, stock returns | reservation_id, reason? (store | no_show) |
| resend_code | Email the code again | reservation_id |
| list_customers | Registered customers, A-Z by email | email?, cursor?, limit? |
| get_customer | One customer + 10 latest reservations + missed pickups | customer_id |
| list_tiers | Membership tiers | none |
| assign_tier | Give or replace a customer tier | tier_id, customer_id or customer_email |
| clear_missed_pickups | Reset a customer's missed pickups to 0 | customer_id |
| search_catalog | Search the store POS catalog, with on-hand | q?, cursor? |
| list_fields | The store product fields; call before add_items | none |
| list_webhooks | Endpoints and last delivery | none |
| create_webhook | Register an https URL (secret shown once) | url, events? |
| delete_webhook | Remove an endpoint | webhook_id |
| lookup_reservation (public) | Status of one reservation | code (or confirmation_code), email |
| follow_store (public) | Sign up for new pull list alerts | store_id, email, phone? |
- A “pull list” in the app is
listin 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
statuscan change on a pull list. Reopening a ready pull list clearsready_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: falseinstead of the secret.