# List Service Points — Sendcloud

> List service points. See the documentation

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

## Description

List service points. [See the documentation](https://api.sendcloud.dev/docs/sendcloud-public-api/branches/v2/service-points/operations/list-service-points)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `country` | `string` | Yes | Country of the recipient |
| `accessToken` | `string` | No | JWT containing user 'id' or 'iid' (integration ID), or a public API key. |
| `address` | `string` | No | Destination address or postal code. Example: 'Stadhuisplein 10' |
| `carrier` | `string` | No | Comma-separated list of carrier codes. Example: 'postnl,dpd' |
| `city` | `string` | No | City of the recipient |
| `generalShopType` | `string[]` | No | Single value or comma-separated values (e.g., 'servicepoint' or 'servicepoint,locker,post_office'). |
| `houseNumber` | `string` | No | House number of the recipient |
| `latitude` | `string` | No | Reference latitude for distance calculation. |
| `longitude` | `string` | No | Reference longitude for distance calculation. |
| `neLatitude` | `string` | No | Latitude of the northeast corner of the bounding box. |
| `neLongitude` | `string` | No | Longitude of the northeast corner of the bounding box. |
| `postalCode` | `string` | No | Postal code of the destination. Example: '5611 EM' |
| `pudoId` | `string` | No | DPD-specific parameter (<= 7 characters). |
| `radius` | `integer` | No | Radius (in meter) of a bounding circle. Can be used instead of the NE Latitude, NE Longitude, SW Latitude, and SW Longitude parameters to define a bounding box. Minimum value: 100 meters. Maximum value: 50 000 meters. |
| `shopType` | `string` | No | Filter results by shop type. |
| `swLatitude` | `string` | No | Latitude of the southwest corner of the bounding box. |
| `swLongitude` | `string` | No | Longitude of the southwest corner of the bounding box. |
| `weight` | `string` | No | Parcel weight in kilograms. Certain carriers have limits per service point. |

## 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": "sendcloud",
      },
    },
  },
)

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: "sendcloud-list-service-points",
  arguments: {
    country: "country",
    accessToken: "Access Token",
  },
})
```

**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: "sendcloud-list-service-points",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    sendcloud: { authProvisionId: "apn_xxxxxxx" },
    country: "country",
    accessToken: "Access Token",
  },
})

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": "sendcloud-list-service-points",
    "configured_props": {
      "sendcloud": { "authProvisionId": "apn_xxxxxxx" },
      "country": "country",
      "accessToken": "Access Token"
    }
  }'
```

---

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