# Paigo — Pipedream Connect

> SaaS Billing on Autopilot with Full Flexibility.

- API slug: `paigo` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://paigo.tech/
- This page (HTML): https://pipedream.com/apps/paigo
- Tools: 9 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: paigo`

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

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

const { tools } = await mcp.listTools()

// e.g. run Add Credits:
const result = await mcp.callTool({
  name: "paigo-add-credits",
  arguments: {
    customerId: "Customer ID",
    creditAmount: "Credit Amount",
  },
})
```

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

## API proxy

For a Paigo 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.prod.paigo.tech/customers

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkucHJvZC5wYWlnby50ZWNoL2N1c3RvbWVycw?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: "paigo-add-credits",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    paigo: { authProvisionId: "apn_xxxxxxx" },
    customerId: "Customer ID",
    creditAmount: "Credit Amount",
  },
})
```

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

## Actions (9)

### `paigo-add-credits` — Add Credits (Write)

Increments the credit balance of a specific customer. See the documentation

Full schema: https://pipedream.com/apps/paigo/actions/add-credits.md

### `paigo-create-dimension` — Create Dimension (Write)

Creates a new dimension inside the Paigo platform. See the documentation

Full schema: https://pipedream.com/apps/paigo/actions/create-dimension.md

### `paigo-create-offering` — Create Offering (Write)

Creates a new offering in the Paigo platform. See the documentation

Full schema: https://pipedream.com/apps/paigo/actions/create-offering.md

### `paigo-get-invoice` — Get Invoice (Read-only)

Fetches detailed information about a specific invoice. See the documentation

Full schema: https://pipedream.com/apps/paigo/actions/get-invoice.md

### `paigo-list-customer-id-options` — List Customer ID Options (Read-only)

Retrieves available options for the Customer ID field.

Full schema: https://pipedream.com/apps/paigo/actions/list-customer-id-options.md

### `paigo-list-dimension-id-options` — List Dimension ID Options (Read-only)

Retrieves available options for the Dimension ID field.

Full schema: https://pipedream.com/apps/paigo/actions/list-dimension-id-options.md

### `paigo-list-offering-id-options` — List Offering ID Options (Read-only)

Retrieves available options for the Offering ID field.

Full schema: https://pipedream.com/apps/paigo/actions/list-offering-id-options.md

### `paigo-measure-usage` — Measure Usage (Write)

Records the amount of a specific usage type linked with a customer. See the documentation

Full schema: https://pipedream.com/apps/paigo/actions/measure-usage.md

### `paigo-onboard-customer` — Onboard Customer (Write)

Creates a new customer and assigns them an offering in Paigo. See the documentation

Full schema: https://pipedream.com/apps/paigo/actions/onboard-customer.md

## Triggers (3)

### `paigo-entitlement-threshold-reached-instant` — Entitlement Threshold Reached (Instant) (Instant)

Emit new event when customers' usage reaches a threshold of 80% or 100% of their offerings. See the documentation

Full schema: https://pipedream.com/apps/paigo/triggers/entitlement-threshold-reached-instant.md

### `paigo-new-customer-instant` — New Customer (Instant) (Instant)

Emit new event when a customer account is created. See the documentation

Full schema: https://pipedream.com/apps/paigo/triggers/new-customer-instant.md

### `paigo-new-invoice-instant` — New Invoice (Instant) (Instant)

Emit new event whenever a new invoice is generated. See the documentation

Full schema: https://pipedream.com/apps/paigo/triggers/new-invoice-instant.md

---

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