eTrusted ACTION
Get List of Reviews
Get a list of reviews for a specific channel, a set of channels or for your entire account. See the documentation
- Action
- Read only
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's eTrusted account once, then configure and run Get List of Reviews from your backend or agent.
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",
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 -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",
"configured_props": {
"etrusted": { "authProvisionId": "apn_xxxxxxx" },
"channelId": ["Channel ID"],
"after": "After"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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",
arguments: {
channelId: ["Channel ID"],
after: "After",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
channelId Channel ID | string[] | The ID of the channel to get reviews for Optional Dynamic |
after After | string | After is a review ID. The list of reviews in the response will only contain reviews submitted earlier than the review with this ID. Optional Dynamic |
before Before | string | Before is a review ID. The list of reviews in the response will only contain reviews submitted later than the review with this ID. Optional Dynamic |
submittedAfter Submitted After | string | 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. Optional |
submittedBefore Submitted Before | string | 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. Optional |
rating Rating | integer[] | A list of star ratings to be retrieved. If not set, all reviews are listed. Example: [1, 2, 5] Optional |
status Status | string[] | A list of statuses to be retrieved. If not set, all reviews are listed. Optional |
type Type | string[] | A list of review types to be retrieved. If not set, all reviews are listed. Optional |
hasReply Has Reply | boolean | Reduces the list of reviews to only match reviews that either have been replied to or not. If not set, all reviews are listed. Optional |
additionalInformation Additional Information | string[] | A list of additional pieces of information to be retrieved with the review. If this property is not set, none of the of additional information are included in the review. Optional |
ignoreStatements Ignore Statements | boolean | Filters the list to ignore statements. Optional |
query Query | string | A full-text search query that is matched against the order reference and email properties. Optional |
sku SKU | string | list of product's SKUs. Be aware, that this parameter does only make sense for product reviews. Optional |
orderBy Order By | string | Specify the date to sort the returned list of reviews by. Optional |
maxResults Max Results | integer | The maximum number of reviews to return. If not set, all reviews are returned. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- etrusted-get-list-of-reviews
- Version
- 0.0.2
- App
- eTrusted
- Authentication
- OAuth
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗