Developers

API & webhooks

Everything you need to send invitations automatically and show reviews anywhere. Find your API key under Dashboard → Integrations.

Widgets

Add the script once per page and a container wherever you want a widget:

<div class="trustscorely-widget" data-domain="yourshop.com" data-template="mini"></div> <script src="https://trustscorely.com/widget.js" async></script>

Options: data-template badge · mini · list · carousel · wall, data-theme light · dark, data-min-stars 1–5, data-count 1–20. Widgets render in a shadow root, so your CSS can’t break them and theirs can’t touch yours.

Create invitations

POST https://trustscorely.com/api/v1/invitations Authorization: Bearer tsk_… Content-Type: application/json {"email":"[email protected]","name":"Anna","order_ref":"1042"}

Send an array of up to 100 objects to create several at once. Add "send_now": true to skip the delay. Responses: 201 created, 422 rejected (invalid email, invited in the last 30 days, duplicate order, monthly limit), 402 plan doesn’t include the API.

Read reviews

GET https://trustscorely.com/api/v1/reviews?since=1735689600000 Authorization: Bearer tsk_…

Public widget data

GET https://trustscorely.com/api/v1/widget/yourshop.com?min=4&count=8

Shopify webhook

Point an Order fulfillment webhook to https://trustscorely.com/api/v1/hooks/shopify/<your id> (shown in your dashboard) and save Shopify’s signing key in TrustScorely. Every request is checked with HMAC-SHA256.