# Printful — Pipedream Connect

> Easy print-on-demand drop shipping and fulfillment warehouse services

- API slug: `printful` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Commerce
- Website: https://www.printful.com/
- This page (HTML): https://pipedream.com/apps/printful
- Tools: 4 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: printful`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "printful",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Calculate Shipping Rates:
const result = await mcp.callTool({
  name: "printful-calculate-shipping-rates",
  arguments: {
    storeId: "Store ID",
    address1: "Address 1",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Printful endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.printful.com/products

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkucHJpbnRmdWwuY29tL3Byb2R1Y3Rz?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "printful-calculate-shipping-rates",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    printful: { authProvisionId: "apn_xxxxxxx" },
    storeId: "Store ID",
    address1: "Address 1",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (4)

### `printful-calculate-shipping-rates` — Calculate Shipping Rates (Write)

Fetches available shipping rates for a given destination. See the documentation

Full schema: https://pipedream.com/apps/printful/actions/calculate-shipping-rates.md

### `printful-create-order` — Create Order (Write)

Creates a new order in your Printful account. See the documentation

Full schema: https://pipedream.com/apps/printful/actions/create-order.md

### `printful-list-store-id-options` — List Store ID Options (Read-only)

Retrieves available options for the Store ID field.

Full schema: https://pipedream.com/apps/printful/actions/list-store-id-options.md

### `printful-update-product` — Update Product (Write)

Updates an existing product in your Printful store. See the documentation

Full schema: https://pipedream.com/apps/printful/actions/update-product.md

## Triggers (3)

### `printful-new-order-instant` — New Order Created (Instant) (Instant)

Emit new event when a new order is created in your Printful account.

Full schema: https://pipedream.com/apps/printful/triggers/new-order-instant.md

### `printful-new-product-added-instant` — New Product Added (Instant) (Instant)

Emit new event when a new product is added to your Printful store catalog.

Full schema: https://pipedream.com/apps/printful/triggers/new-product-added-instant.md

### `printful-order-status-updated-instant` — Order Status Updated (Instant) (Instant)

Emit new event when the status of an existing Printful order is updated.

Full schema: https://pipedream.com/apps/printful/triggers/order-status-updated-instant.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
