# Get List of Reviews with Fewer Properties — eTrusted

> Retrieves a list of reviews with fewer properties. See the documentation

- Key: `etrusted-get-list-of-reviews-with-fewer-properties`
- Type: Action (Read-only)
- Version: 0.0.2
- App: eTrusted (`etrusted`) — https://pipedream.com/apps/etrusted.md
- This page (HTML): https://pipedream.com/apps/etrusted/actions/get-list-of-reviews-with-fewer-properties
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/etrusted/actions/get-list-of-reviews-with-fewer-properties/get-list-of-reviews-with-fewer-properties.mjs

## Description

Retrieves a list of reviews with fewer properties. [See the documentation](https://developers.etrusted.com/reference/getminimalreviews)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `channelId` | `string[]` | No | The ID of the channel to get reviews for Options are loaded from the connected account. |
| `after` | `string` | No | After is a review ID. The list of reviews in the response will only contain reviews submitted earlier than the review with this ID. Options are loaded from the connected account. |
| `before` | `string` | No | Before is a review ID. The list of reviews in the response will only contain reviews submitted later than the review with this ID. Options are loaded from the connected account. |
| `submittedAfter` | `string` | No | Submitted After is a timestamp in the ISO 8601 and RFC3339 compliant format yyyy-MM-dd'T'HH:mm:ss.SSSZ. Check the glossary for examples of valid datetime formats. The list of reviews will only contain reviews submitted with a later timestamp. |
| `submittedBefore` | `string` | No | Submitted Before is a timestamp in the ISO 8601 and RFC3339 compliant format yyyy-MM-dd'T'HH:mm:ss.SSSZ. Check the glossary for examples of valid datetime formats. The list of reviews will only contain reviews submitted with an earlier timestamp. |
| `rating` | `integer[]` | No | A list of star ratings to be retrieved. If not set, all reviews are listed. Example: [1, 2, 5] |
| `status` | `string[]` | No | A list of statuses to be retrieved. If not set, all reviews are listed. |
| `type` | `string[]` | No | A list of review types to be retrieved. If not set, all reviews are listed. |
| `hasReply` | `boolean` | No | Reduces the list of reviews to only match reviews that either have been replied to or not. If not set, all reviews are listed. |
| `ignoreStatements` | `boolean` | No | Filters the list to ignore statements. |
| `query` | `string` | No | A full-text search query that is matched against the order reference and email properties. |
| `sku` | `string` | No | list of product's SKUs. Be aware, that this parameter does only make sense for product reviews. |
| `orderBy` | `string` | No | Specify the date to sort the returned list of reviews by. |
| `maxResults` | `integer` | No | The maximum number of reviews to return. If not set, all reviews are returned. |

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

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: "etrusted-get-list-of-reviews-with-fewer-properties",
  arguments: {
    channelId: ["Channel ID"],
    after: "After",
  },
})
```

**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: "etrusted-get-list-of-reviews-with-fewer-properties",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    etrusted: { authProvisionId: "apn_xxxxxxx" },
    channelId: ["Channel ID"],
    after: "After",
  },
})

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": "etrusted-get-list-of-reviews-with-fewer-properties",
    "configured_props": {
      "etrusted": { "authProvisionId": "apn_xxxxxxx" },
      "channelId": ["Channel ID"],
      "after": "After"
    }
  }'
```

---

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