# List Contacts — Belco

> List the contacts of a Belco shop, optionally filtered by email address, phone number or contact type. Use this to look up a recipient's contact ID by email before calling Create Conversation, Send Message or Get Contact Details — or skip…

- Key: `belco-list-contacts`
- Type: Action (Read-only)
- Version: 0.0.1
- App: Belco (`belco`) — https://pipedream.com/apps/belco.md
- This page (HTML): https://pipedream.com/apps/belco/actions/list-contacts
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/belco/actions/list-contacts/list-contacts.mjs

## Description

List the contacts of a Belco shop, optionally filtered by email address, phone number or contact type. Use this to look up a recipient's contact ID by email before calling **Create Conversation**, **Send Message** or **Get Contact Details** — or skip the lookup entirely by passing `To Email` to **Create Conversation** / **Send Message**. Use **List Shop ID Options** to find the shop ID. Paginate with `Limit` and `Skip`. [See the documentation](https://developers.belco.io/reference/get_shops-shopid-contacts)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `shopId` | `string` | Yes | The ID of the Belco shop, e.g. QCKysMML2DRfxW37G. Use List Shop ID Options to find it (the value field). Options are loaded from the connected account. |
| `email` | `string` | No | Only return contacts with this email address (e.g. jane@example.com). |
| `phoneNumber` | `string` | No | Only return contacts with this phone number, in E.164 format (e.g. +31612345678). |
| `contactType` | `string` | No | Only return contacts of this type. |
| `limit` | `integer` | No | Maximum number of contacts to return. |
| `skip` | `integer` | No | Number of contacts to skip, for pagination (e.g. 50 for the second page when Limit is 50). |

## Run it

**MCP**

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

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "belco-list-contacts",
  arguments: {
    shopId: "Shop ID",
    email: "Email",
  },
})
```

**TypeScript**

```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: "belco-list-contacts",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    belco: { authProvisionId: "apn_xxxxxxx" },
    shopId: "Shop ID",
    email: "Email",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "belco-list-contacts",
    "configured_props": {
      "belco": { "authProvisionId": "apn_xxxxxxx" },
      "shopId": "Shop ID",
      "email": "Email"
    }
  }'
```

---

- App: https://pipedream.com/apps/belco.md · All apps: https://pipedream.com/apps
