# Goody — Pipedream Connect

> A new way to send effortless, unforgettable gifts 🎁

- API slug: `goody` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Business Management
- Website: https://www.ongoody.com/
- This page (HTML): https://pipedream.com/apps/goody
- Tools: 5 actions · 2 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: goody`

```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": "goody",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Order:
const result = await mcp.callTool({
  name: "goody-create-order",
  arguments: {
    productId: "Product",
    quantity: 10,
  },
})
```

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

## API proxy

For a Goody 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.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?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: "goody-create-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    goody: { authProvisionId: "apn_xxxxxxx" },
    productId: "Product",
    quantity: 10,
  },
})
```

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

## Actions (5)

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

Creates a new order in Goody. See the documentation

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

### `goody-list-order-batch-id-options` — List Order Batch Options (Read-only)

Retrieves available options for the Order Batch field.

Full schema: https://pipedream.com/apps/goody/actions/list-order-batch-id-options.md

### `goody-list-payment-method-id-options` — List Payment Method Options (Read-only)

Retrieves available options for the Payment Method field.

Full schema: https://pipedream.com/apps/goody/actions/list-payment-method-id-options.md

### `goody-list-product-id-options` — List Product Options (Read-only)

Retrieves available options for the Product field.

Full schema: https://pipedream.com/apps/goody/actions/list-product-id-options.md

### `goody-retrieve-orders-for-order-batch` — Retrieve Orders For Order Batch (Read-only)

Retrieves orders for an order batch in Goody. See the documentation

Full schema: https://pipedream.com/apps/goody/actions/retrieve-orders-for-order-batch.md

## Triggers (2)

### `goody-new-order-created` — New Order Created (Polling)

Emit new event when a new order is created in Goody.

Full schema: https://pipedream.com/apps/goody/triggers/new-order-created.md

### `goody-order-delivered` — Order Delivered (Polling)

Emit new event when an order is delivered in Goody.

Full schema: https://pipedream.com/apps/goody/triggers/order-delivered.md

---

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