# Developer overview

> For AI agents: the index of these docs is at https://shippified.net/docs/llms.txt (every page it lists has a Markdown version like this one).

What you can build on Shippified, how the pieces connect, and a five-minute first request.

Shippified collects orders from Discord monitor bots and retailer emails, merges them into one order list, and tracks each order through to delivery. The dashboard at `shippified.net` runs on the same HTTP API documented here, so anything the dashboard does, your code can do: read and create orders, record sale prices, connect intake sources, write parsing templates, and get a signed HTTP call when something changes.

This section explains the concepts and walks through each resource. For every endpoint and schema, generated straight from the live OpenAPI spec, use the **API reference** pages in the sidebar (linked [below](#api-reference)).

:::cards
::card{title="Authentication" href="./authentication"} API keys and their Read-only or Read & write scope, session tokens, and what keys can't do.
::card{title="REST API conventions" href="./rest-api"} Errors, pagination, rate limits, IDs and dates.
::card{title="Orders" href="./orders"} The order object, statuses, editing rules and tracking.
::card{title="Webhooks" href="./webhooks"} Get a signed POST when orders are created, ship or arrive.
:::

## What you can build on

| Surface | Direction | What it is | Page |
| --- | --- | --- | --- |
| REST API | You call Shippified | JSON over HTTPS at `https://shippified.net/api`. Orders, bots, email sources, templates, tracking, recurring costs, share cards, webhook subscriptions, account. | [REST API conventions](https://shippified.net/docs/rest-api), [Orders](https://shippified.net/docs/orders) |
| Authentication | You call Shippified | Bearer tokens on every request: long-lived API keys (`sk_…`, **Read-only** or **Read & write**) for your code, 14-day session tokens for the dashboard. | [Authentication](https://shippified.net/docs/authentication) |
| Discord-format intake | A bot calls Shippified | One URL per bot that accepts the same JSON as a Discord webhook. Anything that can post to Discord can create orders. | [Getting orders in](https://shippified.net/docs/intake) |
| Email intake | Mail reaches Shippified | Upload a raw email yourself, let Shippified poll a mailbox (IMAP, Gmail, Microsoft), or forward mail to a Shippified address. | [Getting orders in](https://shippified.net/docs/intake) |
| Custom templates | You call Shippified | Teach the parser a new bot or email: match rules, field mappings, live previews and a full dry run. | [Templates API](https://shippified.net/docs/templates-api) |
| Outbound webhooks | Shippified calls you | Signed `POST` requests to your URL for seven event types, from order creation to share cards. | [Webhooks](https://shippified.net/docs/webhooks) |
| TypeScript SDK | Library | `shippified-sdk` 0.2.2: a typed, dependency-free client plus a signature verifier. Install from npm. | [TypeScript SDK](https://shippified.net/docs/sdk) |
| MCP server | Library | `mcp-shippified` 0.2.2: 49 tools that let Claude and other MCP clients work in your workspace. Runs with `npx mcp-shippified`. | [MCP server](https://shippified.net/docs/mcp-server) |
| OpenAPI spec | Reference | OpenAPI 3.1 at `https://shippified.net/api/openapi.json` (no token needed). An interactive viewer runs at `https://shippified.net/api`. | [API reference](#api-reference) |

## How the pieces fit

```text
Discord monitor ──POST──▶ /api/webhooks/discord/:handle/:slug ──┐
Mailbox poll / forwarding / POST /api/email/import ─────────────┼─▶ parser ─▶ orders ─▶ outbound webhooks
Your code ──POST /api/orders ───────────────────────────────────┘               │
                                                                                ▼
                                      REST API, SDK and MCP read and update orders
                                      Background tracker refreshes in-flight packages
```

Every incoming message goes through one intake pipeline:

1. **Check.** For email, mail forwarded to a paused forwarding address is dropped, the source's allowed-senders list is applied to the sender (for a manual forward, the original sender only when you forwarded it from your own address), and a message Shippified has already seen (same `Message-ID`) or that belonged to an order you deleted is skipped.
2. **Parse.** The message is matched against your custom templates and the built-in shapes, and order fields are pulled out of it.
3. **Merge or create.** If an order with the same order number exists, the message is merged into it. Otherwise a new order is created.
4. **Notify.** Matching [webhook events](https://shippified.net/docs/webhooks) fire, and a status card is posted to your Discord updates webhook if you set one. Orders you create with `POST /api/orders` notify the same way.

An order's `status` is one of `ordered`, `shipped`, `delivered`, `canceled` or `issue`. It is always worked out by Shippified from the messages and carrier data, never set by hand, and it only moves forward. See [Orders → Status](https://shippified.net/docs/orders#status).

## Make your first request

### 1. Create an API key

In the dashboard, open **Settings**, then the **Developer** tab. Type a name under **Mint a new key** (for example `Local dev`). **Read-only** is selected, which is enough for this walkthrough; pick **Read & write** for a key that will create or change things. Click **Create key**. Copy the key that appears, then click **I've saved it**. The key is shown only this once.

![The API keys card showing a freshly created key with Copy and I've saved it buttons](https://cdn.forumulate.com/5b8789b1-481a-41f5-8e5a-5f30d11f5151/87a19474-4d68-435a-9891-32eda885c145/dev-key-created.webp)

### 2. Put it in an environment variable

Keep the key out of your source code:

```bash
export SHIPPIFIED_API_KEY="sk_..."
```

### 3. List your five most recent orders

:::tabs
::tab{title="curl"}
```bash
curl -s "https://shippified.net/api/orders?limit=5" \
  -H "Authorization: Bearer $SHIPPIFIED_API_KEY"
```
::
::tab{title="TypeScript SDK"}
```typescript
import { ShippifiedClient } from "shippified-sdk";

const shippified = new ShippifiedClient({ token: process.env.SHIPPIFIED_API_KEY });
const page = await shippified.orders.list({ limit: 5 });
console.log(page.items.map((o) => `${o.id} ${o.status} ${o.itemSummary}`));
```
::
::tab{title="MCP"}
Ask your MCP client: "List my five most recent Shippified orders." It calls the `list_orders` tool with `limit: 5`.
::
:::

You get the standard list envelope:

```json
{
  "items": [ { "id": "ord_mpvu9uim_aeh5t", "status": "shipped", "itemSummary": "Example Console Bundle", "…": "…" } ],
  "total": 142,
  "limit": 5,
  "offset": 0,
  "hasMore": true
}
```

A `401 {"error": "Not authenticated"}` means the header is missing or the key is wrong or revoked.

### 4. Check the service and the spec

Neither call needs a token:

```bash
curl -s https://shippified.net/api/healthz
curl -s https://shippified.net/api/openapi.json | jq '.info'
```

:::hint{style="success"}
If you're setting Shippified up as a reseller rather than building against it, start with the [quickstart guide](https://shippified.net/guides/quickstart) instead.
:::

## API reference

The per-endpoint reference is generated from `https://shippified.net/api/openapi.json` and grouped by area. Each page lists every operation with its parameters, request body and response schema.

:::cards
::card{title="Orders" href="./ref-orders"} List, get, create, edit, delete and re-parse orders.
::card{title="Tracking" href="./ref-tracking"} Carrier status, per-order lookups and bulk sync.
::card{title="Bots" href="./ref-bots"} Discord webhook bots and each bot's activity log.
::card{title="Intake" href="./ref-intake"} The public Discord-format intake URL.
::card{title="Email" href="./ref-email"} Email sources, polling, rebuilds and manual import.
::card{title="Inbox" href="./ref-inbox"} Every email that reached the workspace, with its outcome.
::card{title="Templates" href="./ref-templates"} Built-in shapes and custom templates.
::card{title="Webhook Subscriptions" href="./ref-webhook-subscriptions"} Outbound webhook CRUD, tests and secret rotation.
::card{title="Account" href="./ref-account"} API keys, profile settings, export and deletion.
::card{title="Auth" href="./ref-auth"} Sign-in, sessions and the current user.
:::

The rest of the reference: [State](https://shippified.net/docs/ref-state), [Subscriptions](https://shippified.net/docs/ref-subscriptions) (recurring costs), [Insights](https://shippified.net/docs/ref-insights), [Shares](https://shippified.net/docs/ref-shares), [Embed Copier](https://shippified.net/docs/ref-embed-copier), [Discord](https://shippified.net/docs/ref-discord), [Settings](https://shippified.net/docs/ref-settings), [Billing](https://shippified.net/docs/ref-billing) and [Public](https://shippified.net/docs/ref-public). The API's own introduction is at [Shippified API](https://shippified.net/docs/ref-shippified-api).

:::hint{style="info"}
The reference lists shapes; the narrative pages explain behaviour a spec can't express, such as merge rules, fill-missing-only edits, and webhook signing and retry details. Read both.
:::

## Where to go next

:::cards
::card{title="Getting orders in" href="./intake"} Discord-format intake URLs and raw email import.
::card{title="Templates API" href="./templates-api"} Parse a bot or email Shippified doesn't recognise.
::card{title="TypeScript SDK" href="./sdk"} Typed methods for every resource.
::card{title="MCP server" href="./mcp-server"} Let Claude manage your workspace.
:::

---

## For AI agents

- This page for a human reader: https://shippified.net/docs/overview
- The whole space as one Markdown file: https://shippified.net/docs/llms-full.txt
- Live search + fetch over MCP: https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/mcp
  - Install (Claude CLI): `claude mcp add api-docs --transport http https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/mcp`

This Markdown is the same content the page renders — safe to quote and to ground answers in.
