Trustpilot
Business review management platform for collecting, managing, and showcasing customer reviews.
Trustpilot
Business review management platform for collecting, managing, and showcasing customer reviews.
Capabilities
| Integration | Available | Notes |
|---|---|---|
| API | ✓ | Business Units, Reviews, Invitations, Tags |
| MCP | - | Not available |
| CLI | ✓ | [trustpilot.js](../clis/trustpilot.js) |
| SDK | ✓ | Node.js (official), community wrappers |
Authentication
- Type: API Key (public endpoints) + OAuth 2.0 (private endpoints)
- Public Header:
apikey: {YOUR_API_KEY} - Private Header:
Authorization: Bearer {access_token} - OAuth Grant: Client Credentials (
Basic base64(API_KEY:API_SECRET)) - Token Lifetime: Access tokens expire after 100 hours, refresh tokens after 30 days
- Get credentials: https://businessapp.b2b.trustpilot.com/ > Integrations > API
Common Agent Operations
Search for a business unit
GET https://api.trustpilot.com/v1/business-units/search?query=example.com&limit=10
Headers:
apikey: {API_KEY}Get business unit details
GET https://api.trustpilot.com/v1/business-units/{businessUnitId}
Headers:
apikey: {API_KEY}Get business profile info
GET https://api.trustpilot.com/v1/business-units/{businessUnitId}/profileinfo
Headers:
apikey: {API_KEY}List public reviews
GET https://api.trustpilot.com/v1/business-units/{businessUnitId}/reviews?perPage=20&orderBy=createdat.desc
Headers:
apikey: {API_KEY}List private reviews (with customer data)
GET https://api.trustpilot.com/v1/private/business-units/{businessUnitId}/reviews?perPage=20
Headers:
Authorization: Bearer {access_token}Reply to a review
POST https://api.trustpilot.com/v1/private/reviews/{reviewId}/reply
Headers:
Authorization: Bearer {access_token}
{
"message": "Thank you for your feedback!"
}Send email invitation
POST https://invitations-api.trustpilot.com/v1/private/business-units/{businessUnitId}/email-invitations
Headers:
Authorization: Bearer {access_token}
{
"consumerEmail": "[email removed]",
"consumerName": "Jane Doe",
"referenceNumber": "order-123",
"senderEmail": "[email removed]",
"senderName": "Team",
"replyTo": "[email removed]",
"type": "email",
"serviceReviewInvitation": {
"templateId": "<template_id>",
"redirectUri": "https://example.com/thanks"
}
}Generate review invitation link
POST https://invitations-api.trustpilot.com/v1/private/business-units/{businessUnitId}/invitation-links
Headers:
Authorization: Bearer {access_token}
{
"email": "[email removed]",
"name": "Jane Doe",
"referenceId": "order-123",
"redirectUri": "https://example.com/thanks"
}List invitation templates
GET https://invitations-api.trustpilot.com/v1/private/business-units/{businessUnitId}/templates
Headers:
Authorization: Bearer {access_token}Add tags to a review
PUT https://api.trustpilot.com/v1/private/reviews/{reviewId}/tags
Headers:
Authorization: Bearer {access_token}
{
"tags": [{ "group": "sentiment", "value": "positive" }]
}Key Metrics
Business Unit Metrics
numberOfReviews- Total review counttrustScore- Overall trust score (1-5)stars- Star rating displayedstatus- Claim status (claimed, unclaimed)
Review Metrics
stars- Individual review star rating (1-5)language- Review language codecreatedAt- Review creation timestampisVerified- Whether the review is verifiedstatus- Review status (active, reported, flagged)
Parameters
Review Filters
stars- Filter by star rating (1-5)language- Filter by language code (e.g.,en)orderBy- Sort order (createdat.desc,createdat.asc,stars.desc,stars.asc)perPage- Results per page (max 100)
Invitation Parameters
consumerEmail- Recipient email (required)consumerName- Recipient name (required)referenceNumber- Order or transaction referencetemplateId- Email template IDredirectUri- URL to redirect after review submissionsenderEmail- Custom sender emailreplyTo- Custom reply-to address
When to Use
- Collecting and managing customer reviews at scale
- Automating post-purchase review invitation flows
- Monitoring brand reputation and review sentiment
- Responding to customer feedback programmatically
- Showcasing TrustScore and reviews on marketing pages
- Tagging and categorizing reviews for analysis
Rate Limits
- Recommended: no more than 833 calls per 5 minutes (10K/hour)
- Throttled at more than 1 request per second
- Rate limit headers returned in responses
- Use webhooks instead of polling where possible
Relevant Skills
- reputation-management
- customer-feedback
- review-generation
- social-proof
- post-purchase-flow
CLI invitation requests
Invitation creation, links, and templates use invitations-api.trustpilot.com; OAuth and review operations retain api.trustpilot.com. Email invitations put templateId and redirectUri inside serviceReviewInvitation, rather than at the top level. Links retain their separate email/name/referenceId payload.
Supply --business-user-id for the x-business-user-id header when using the CLI's client credentials grant on behalf of an Admin or Manager. Use --sender-name, --sender-email, and --reply-to for email sender fields. No real invitation is sent by --dry-run.
Contract: Trustpilot Invitation API.
Source: https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/trustpilot.md
Author: coreyhaines31, Marketing skills. License: MIT.
Shown here with formatting for the web; email addresses removed. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.