A Trustpilot API integration connects your Trustpilot Business account to the systems you already run, so review invitations go out from real orders, new reviews reach the people who should see them, and replies can be handled without logging into another dashboard.
What This Is
Most businesses use Trustpilot through its own website: invitations from a CSV upload or an email BCC address, reviews read in the Trustpilot Business dashboard, replies typed there. That works until reviews matter enough that someone wants them somewhere else. The support team wants a one-star review in their Slack channel within minutes. The account manager wants it on the customer’s CRM record. Operations wants invitations sent only once an order has been delivered, not when it was placed.
The Trustpilot API is how those connections get built. We write the service that sits between Trustpilot and your systems: it receives Trustpilot’s notifications, calls its APIs, keeps the access tokens current and logs everything it does.
Trustpilot isn’t a platform we’ve built a client integration for yet. What follows is what Trustpilot documents and how we’d build against it, using the same patterns we use on the integrations we run. If you want a review widget on your website, Trustpilot’s own TrustBox widgets do that without any development, and you don’t need us.
What the Trustpilot API Covers
These details come from Trustpilot’s developer documentation, which we re-check at the start of every project.
- Access is an add-on. The business APIs need the API module, bought on top of a Trustpilot for Business plan. It comes in three tiers by yearly call allowance: 200,000 calls, 1,000,000 calls, or unlimited. Enterprise plans include Tier 1. Find out which you have before scoping anything, because it decides what can be built.
- Public and private APIs authenticate differently. Public data, such as a business unit’s published reviews and score, needs only your API key. Anything private (sending invitations, reading a review’s private details, replying, tagging) needs an OAuth 2.0 access token. Tokens last 100 hours and refresh tokens 30 days, so a server-side integration has to renew them on a schedule.
- Client credentials is the grant that suits a server. Trustpilot also supports authorisation code and implicit flows, but those mean a business user logs in, and their documentation notes that multi-factor authentication has to be off for that user. Client credentials avoids the problem, provided the business user it acts for holds the Admin or Manager role.
- The Invitation API creates email invitations for service and product reviews, with a preferred send time and a choice of template, and it can generate unique invitation links you send yourself. It also deletes invitation data by customer email or date, which is what a data-deletion request needs.
- The Service Reviews API reads a review’s private details, posts a reply as a named business user, and adds or removes tags.
- Webhooks notify your server when a customer writes, revises or deletes a service or product review. You add the subscription URL in Trustpilot Business, and you can put basic-auth credentials in that URL so your server can reject requests that don’t carry them.
When You Need This
The usual trigger is volume. A business asking for twenty reviews a month can manage from the dashboard. One sending invitations off thousands of orders wants them timed from the delivery event in its own system, suppressed for orders that were refunded or are under complaint, and recorded against the customer so nobody gets asked twice.
The other trigger is response time. A bad review that sits unseen for a week reads worse than one answered the same day, and the people best placed to answer it are often not the ones who log into Trustpilot.
How We’d Build It
We’d start with a short scoping call to confirm your plan and API tier, which business units are involved, and which two or three flows matter most. Then a written map of each flow: what event starts it, what data it needs, and where the result goes.
The build is a small server-side service, typically Laravel with queued workers. A webhook endpoint receives Trustpilot’s notifications, checks the credentials, stores the raw payload and hands it to a queue, so a slow Slack or CRM call never makes Trustpilot think delivery failed. Our webhook integration guide goes through that pattern in detail. Duplicates are discarded by review ID, so a retried notification doesn’t post twice. A scheduled job renews the OAuth token before it expires, and a nightly comparison with your review list on Trustpilot catches anything a missed webhook would have dropped.
The flows we expect to build most often are these. A new review of three stars or fewer is posted to a support channel through our Slack integration work, with a link and the customer’s order reference. Every review is written to the contact’s record in HubSpot or whichever CRM you use. Invitations are sent from the order system once delivery is confirmed, with refunded orders excluded. Replies drafted in your own tool are posted back to Trustpilot through the API under the right business user’s name.
The pattern is one we run elsewhere: for a lead-generation business we send the outcome of each lead back to the ad platforms that sourced it, with every event keyed so a retry is never counted twice. That’s covered on our API integrations page.
What You Get
- A written flow map for each connection: trigger, data, destination
- A webhook receiver for Trustpilot review events, with credential checks and a stored copy of every payload
- Automatic OAuth token renewal, so the integration doesn’t stop when a token expires
- Invitation sending tied to your own order or delivery events, with exclusion rules you set
- Review alerts and CRM records in the systems your team already uses
- A reconciliation job that picks up reviews a missed notification would have lost
- A readable log of every call made to Trustpilot, for working out what happened months later
Technologies We Use
The Trustpilot Invitation API, Service Reviews API, public Business Units API and review webhooks, authenticated with an API key or OAuth 2.0 as each endpoint requires. On our side, Laravel with queued workers and scheduled jobs, connecting to Slack, a CRM, your shop or order system, or a portal we build. The API integrations overview lists the other platforms we connect.
Related Systems
Review data is most useful next to other customer data, so Trustpilot integrations often end up feeding a customer record in the CRM, a support queue, or a reporting dashboard that shows review scores beside order and complaint figures.
Tell Us What Reviews Should Trigger
Send us your Trustpilot plan and API tier, the system your orders live in, and what you want to happen when a review comes in or an order ships. We’ll come back with what the API allows on your plan and how we’d build it. Start the conversation here.