Documentation
One script tag per site, a REST API and MCP server for managing it, and signed webhooks for verified purchases. Replace placeholders such as site_your_site_key, provedly_your_key and pp_your_widget_token with the values from your dashboard.
Install on your site
Paste your site snippet before the closing body tag of every page. It loads every active widget and CTA bar of that site, async, in a Shadow DOM.
Each site has its own key. Copy the exact line from Sites, your site, Install on this site. Pausing, resuming or creating widgets and bars in the dashboard, or from an AI assistant, needs no code change. Dashboard changes reach visitors within about a minute.
...
<script src="https://provedly.app/w/site.js" data-site="site_your_site_key" async></script>
</body>
</html>Shopify app and WordPress plugin
If you use the Provedly Shopify app, install nothing: the theme app embed loads everything. The WordPress plugin keeps working as it is.
Advanced: a tag for one item
The site snippet covers almost every case. Each widget and bar also has its own tag, under Advanced on its Embed tab, for two situations: an inline bar that must render at an exact spot in the page (it appears where its tag is pasted), and page builders that only accept code per block. A page with both kinds of tags never loads an item twice.
Allowed domains
The config endpoint only answers for domains listed on the site. Subdomains are included, so example.com covers shop.example.com. Add staging hosts explicitly. Leaving the list empty allows any domain, which we do not recommend.
What happens on load
- The site snippet makes one request,
GET https://provedly.app/api/s/{site key}/manifest, which returns every active widget and bar with its settings and up to 30 recent records per widget, plus the current code version. - It then loads the widget code and the bar code, only if the page needs them. Both are versioned files your browser caches until the next release.
- The toast cycle starts after your start delay. Each render posts one impression to
/track. - While the tab is open, a heartbeat hits
/presenceevery 30 seconds for the live counter.
Shopify: product page block
In the Provedly app, open Widget, then Install, and click Add to product page. The theme editor opens with the Product proof block added to your product template. Drag it under the Buy button and save.
- Viewing now: distinct visitors on that product page in the last 90 seconds. Hidden below 2 by default.
- Views: distinct visitors on that product page in the last 24 hours, not page loads. Off by default, hidden below 10.
- Sold: units of that product in verified orders, in the last 24 hours or the last 7 days. Hidden below 3 by default.
- Stock left: the selected variant's inventory from Shopify, shown only when Shopify tracks it, overselling is off and it is at or under your limit (10 by default).
- Orders in the whole store: verified orders in the last 24 hours. Off by default.
Each chip has its own text with {n} for the number, and its own minimum, in the block settings. The block needs the app embed switched on.
Presets pick the chips for you: Selling fast (sold in 24 hours, stock left), Live shoppers (viewing now), Bestseller (sold in 7 days), Almost gone (stock left, viewing now) and Trending (views, sold in 24 hours). Custom uses your own checkboxes.
Show the live count inside your page
Add an element where the count should appear, for example under the product title or the Add to cart button. On Shopify, use a Custom liquid block in the theme editor. The site snippet fills it with the same real count as the toast (visitors seen in the last 90 seconds) and keeps it hidden below your minimum.
<div data-provedly-live data-template="{n} people are viewing this product right now"></div>Add data-style="card" for a boxed version with the number large and a Verify link to your verification page, or data-dot="off" to drop the dot. With several widgets on a page, put a widget token in the attribute (data-provedly-live="pp_…") to pick one.
Video walkthrough: any website or WordPress.
API keys
Create keys under Settings, API keys. One key works for the REST API, the MCP server and the stats feed. Available on every plan, including Free.
| Access | Can read | Can change |
|---|---|---|
| Read only | Lists and stats | Nothing |
| Read and write | Lists and stats | Pause and resume widgets and bars, create and edit bars, add records |
How keys work
- Keys start with
provedly_and belong to the workspace, not to a single widget. - The key is shown once, when you create it. Only a hash is stored, so copy it right away.
- Revoke a key at any time from the same page. Requests with a revoked key get a 401.
REST API
Read your sites, widgets, bars and stats, and make the same changes you can make in the dashboard. Responses are JSON wrapped in a data field.
https://provedly.app/api/v1
Authorization: Bearer provedly_your_key| Endpoint | Key | Notes |
|---|---|---|
| GET /account | read | Plan, usage and limits. |
| GET /sites | read | |
| GET /sites/{site}/snippet | read | The install code for that site. |
| GET /widgets[?site=] | read | Optionally filtered by site. |
| GET /widgets/{widget} | read | |
| PATCH /widgets/{widget} | write | Any of name, status and the widget settings below. Only the fields sent change. Resuming beyond the plan’s widget limit is refused. |
| GET /bars[?site=] | read | Optionally filtered by site. |
| GET /bars/{bar} | read | |
| POST /bars | write | Creates a bar. New bars start paused. |
| PATCH /bars/{bar} | write | Any of name, kind, message, button_text, button_url, ends_at, status and the bar settings below. A new kind switches the type and keeps the bar’s stats, design and targeting; countdown needs an end date. Ended or archived bars can’t be edited. |
| GET /stats?days=30[&site=] | read | days from 1 to 365. |
| POST /widgets/{token}/records | write | The Records API. Also accepts the widget’s own key. |
Ids
Widgets and bars accept their id (a UUID) or their token. Sites accept their id or their domain.
curl -X PATCH https://provedly.app/api/v1/widgets/pp_your_widget_token \
-H "Authorization: Bearer provedly_your_key" \
-H "Content-Type: application/json" \
-d '{"status": "paused"}'Creating a bar (POST /bars)
| Field | Rules | Notes |
|---|---|---|
| site | required | Site id or domain. |
| name | required | |
| kind | required | One of: countdown, evergreen, counter, orders, static. |
| message | required | Use {timer} where the timer goes. It is appended if missing on timer kinds. |
| button_text | optional | |
| button_url | optional | |
| ends_at | optional | "2026-12-01 09:00" read in the bar timezone, or ISO 8601. Countdowns default to 7 days. |
| timezone | optional | IANA name. Defaults to UTC. |
New bars are created paused. Turn one on with PATCH /bars/{bar} {"status": "active"}.
Settings you can change
Reads return the same fields, so you can read a widget or bar, change a value and send it back. URL rules take a list of paths or one path per line. If the change puts two active items in the same spot on the same pages, the response has a warnings entry.
| Item | Endpoint | Fields |
|---|---|---|
| Widgets | PATCH /widgets/{widget} | message_template, theme, position, device, url_include, url_exclude, start_delay, display_seconds, gap_seconds, max_per_session, click_url, click_new_tab, verified_only, live_counter_enabled, live_counter_template, live_counter_min_show |
| Bars | PATCH /bars/{bar} | theme, position, target_id (inline bars: render inside the element with this id), device, url_include, url_exclude, delay_seconds, finish_action, finish_url, finish_message, evergreen_minutes, counter_start, counter_end, counter_step, counter_interval, orders_window_hours (24, 168, 720), orders_min |
Branding, the public verification page, sample records and the detailed design stay in the dashboard.
Stats (GET /stats)
Widget and bar impressions and clicks, verified orders and revenue, proof-assisted orders and revenue, and a per-widget breakdown for the chosen number of days.
Errors and limits
{ "error": "...", "message": "..." }
401 missing or invalid key
403 read-only key used for a change
404 not in this workspace
422 refused: validation, plan limit, or an ended or archived barEach key can make 120 requests per minute.
MCP: Claude, Cursor and other AI tools
Connect an AI assistant to your workspace through the MCP server. It uses the same API key and follows the same rules as the dashboard.
https://provedly.app/mcp (streamable HTTP)
Authorization: Bearer provedly_your_keyclaude mcp add --transport http provedly https://provedly.app/mcp --header "Authorization: Bearer provedly_YOUR_KEY"Tools
get_account, list_sites, list_widgets, list_bars, get_stats, set_widget_status, update_widget, set_bar_status, create_bar, update_bar, add_record, get_install_snippet.
Rules
- The same plan limits apply as in the dashboard.
- Bars created by an assistant start paused until you ask for them to be turned on.
- A read-only key can't change anything.
- Records added through the API or MCP are never marked Verified. Only signed Stripe, Shopify and WooCommerce webhooks are.
Example prompts
- "How many impressions and verified orders did my widgets get in the last 7 days?"
- "Create a countdown bar on example.com for the winter sale ending December 1 at 9am New York time."
- "Pause every widget on my staging site."
- "Give me the install code for my shop."
Stats feed
A single read-only endpoint with your workspace's headline numbers, built for desktop widgets and dashboards. A read-only key is enough.
GET https://provedly.app/api/widget/summary?tz=America/New_York
X-API-Key: provedly_your_key
# or
Authorization: Bearer provedly_your_keycurl "https://provedly.app/api/widget/summary?tz=America/New_York" \
-H "X-API-Key: provedly_your_key"What it returns
That workspace's numbers only. The tz parameter is optional.
| Field | Contains | Notes |
|---|---|---|
| impressions | Series | |
| clicks | Series | |
| ctr | Click-through rate | |
| visitors | live, unique_today | |
| orders | verified, assisted_30d, revenue_30d, assisted_revenue_30d, currency | verified is a series. |
| product | sites, widgets_active, bars_active | |
| usage | impressions_month, impressions_limit, percent | This month against your plan. |
Series fields carry today, yesterday, change_pct, last_7d, last_30d, total, trend_24h, trend_7d, trend_30d.
Numbers are recomputed at most once a minute. Each key can make 60 requests per minute.
Records API
Post a record from your backend whenever a purchase happens. Server to server only. Use the widget's own key, which can be rotated from the Data tab, or a read-and-write account key.
POST https://provedly.app/api/v1/widgets/pp_your_widget_token/records
Authorization: Bearer pk_your_api_key
Content-Type: application/jsoncurl -X POST https://provedly.app/api/v1/widgets/pp_your_widget_token/records \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Doe",
"city": "Berlin",
"country": "DE",
"product_name": "Pro Plan",
"price": "€49",
"external_id": "order_123",
"occurred_at": "2026-10-15T14:03:00Z"
}'| Field | Rules | Notes |
|---|---|---|
| name | required, string, max 120 | Formatted by your name format setting before display. |
| city | optional, max 100 | |
| state | optional, max 100 | Used by the "city, state" location format. |
| country | optional, 2 letters | ISO 3166-1 alpha-2. Upper-cased on save. |
| product_name | optional, max 150 | Falls back to the widget default product name. |
| price | optional, max 30 | Free text, e.g. "$49" or "€39". |
| avatar_url | optional, URL | Used when the avatar style is "image". |
| external_id | optional, max 120 | Unique per widget. A repeat returns 422. |
| occurred_at | optional, date | ISO 8601. Defaults to now. |
Responses
201 Created
{ "id": 812, "hash": "9c1e0b7a…", "verified": false, "occurred_at": "2026-10-15T14:03:00+00:00" }
401 Unauthorized wrong or missing bearer key
422 Unprocessable validation errors, including a duplicate external_idAPI records are shown by the widget but never marked verified. The verified mark is reserved for signed webhooks. See Webhooks.
CSV import
Import history from a spreadsheet on the widget's Data tab. Only name is required.
name,city,state,country,product_name,price,avatar_url,occurred_at
Sarah Mitchell,Austin,TX,US,Pro Plan,$49,,2026-10-15T13:49:00Z
Hugo Martin,Paris,,FR,Annual Pass,€39,,2026-10-15T11:03:00Z
Yui Tanaka,Tokyo,,JP,Lifetime,,,2026-10-14T14:03:00ZRules
- Header row required, columns in any order, extra columns ignored.
- Dates in ISO 8601. Missing dates default to the import time.
- "Skip duplicates" ignores rows whose name and city match an existing record within one hour.
- Imported rows have source
csvand are not verified. Rows older than your lookback window are stored but not shown.
Webhooks (verified purchases)
Webhook records are the only ones that get the verified mark. Add the endpoint on the widget's Data tab, paste the signing secret, then register the URL with the provider. Available on every plan, including free.
Stripe
- In the widget's Data tab, add a Stripe source. Copy the endpoint URL:
https://provedly.app/api/hooks/stripe/pp_your_widget_token- In Stripe, go to Developers, Webhooks, Add endpoint. Paste the URL and select the events your checkout sends:
checkout.session.completedfor one-time Checkout payments,invoice.paidfor subscriptions, andpayment_intent.succeededonly if you charge Payment Intents without Checkout. A purchase is recorded once even when several of them fire. - Copy the signing secret (
whsec_…) into the source's secret field in Provedly. - Send a test event from Stripe. The source shows "last event" within a few seconds.
We read the customer name, shipping or billing country and city when present, the first line item as the product, and the formatted total as the price.
Shopify app (for Shopify stores)
- Install Provedly from the Shopify App Store.
- On the app's home page click "Open theme editor", check the Provedly app embed is on and save. No code, no script tag.
- Orders become verified records automatically: the last 60 days are imported on install and every new order arrives through a signed webhook.
The app runs inside your Shopify admin with the same design, data and analytics tools as this dashboard. Plans are billed through Shopify on your regular Shopify invoice; the Free plan needs no payment method. Shopper names and cities only appear after Shopify approves customer data access for the app; until then notifications read "Someone just purchased…".
WooCommerce (WordPress plugin or manual webhook)
- Add a WooCommerce source in the Data tab, copy the URL and choose a signing secret (any string of 8+ characters):
https://provedly.app/api/hooks/woocommerce/pp_your_widget_token- With the plugin: install Provedly from WordPress.org (Plugins, Add New, search "Provedly"), open Provedly in the admin menu, paste the widget token, the URL and the secret, save. The plugin prints the script tags, creates the WooCommerce webhook and passes the visitor id to each order for attribution.
- Manually: WooCommerce, Settings, Advanced, Webhooks, Add webhook. Topic
Order updated, delivery URL above, the same secret, API versionWP REST API v3.
WooCommerce signs each delivery with HMAC-SHA256 in X-WC-Webhook-Signature. Only orders in Processing or Completed become records, once each, so pending, failed and cancelled orders never show.
Attribution (proof-assisted orders)
The dashboard counts an order as proof-assisted only when the buyer carried a visitor id that saw a notification from the same widget in the 30 days before buying. Nothing is estimated. On Shopify stores using the app this is automatic: the widget writes the visitor id to the cart as the attribute provedly_visitor and the order webhook reads it back.
Everywhere else, forward the visitor id yourself. The widget keeps it in the first-party cookie pv_vid and exposes it as window.Provedly.visitorId().
- Stripe: set
metadata.provedly_visitoron the Checkout Session or PaymentIntent. - Records API: send it as the optional
visitorfield.
// at checkout time, on your site
const visitor = window.Provedly?.visitorId();
// Stripe: pass it as metadata.provedly_visitor
// Records API: POST { ..., "visitor": visitor }Verification page
Every widget has a public page that lists its sources, policy and ledger roots. The badge in the toast links to it. You can link to it from anywhere else too.
https://provedly.app/verify/pp_your_widget_tokenWhat it shows
Verified purchase counts for 24 hours, 7 days and all time; the live counter window and minimum; whether samples are shown; whether only verified purchases are shown; each source with counts and last record; connected providers; recent verified purchases as hashes; and the nightly SHA-256 ledger roots. Names and cities never appear. Read the trust page for the reasoning.
Checking a record against a root
Each record's hash is returned when you create it over the API. The root for a day is the SHA-256 of the sorted list of that day's record hashes. Keep your hashes and you can recompute the root yourself.
Troubleshooting
The widget is installed but shows nothing
If "Verified purchases only" is on and the widget has no verified records yet, it has nothing to show. The widget page warns about this. Turn the setting off or connect a store.
A change in the dashboard isn't on my site yet
Allow about a minute, then reload the page. With the per-item snippets, new code versions can take a few minutes.
Nothing shows on my site
- Open the browser console. A 403 on
/api/w/…/configmeans the page's domain is not in the site's allowed domains. - The widget needs at least one record inside the lookback window. Add a sample record to test.
- Check the widget status is "active" and the workspace has impressions left this month.
- Path targeting: an include list that does not match the current path keeps the widget silent.
The live counter never appears
It is hidden below the minimum you set (default 2). Open the page in two browsers, or a private window, and wait for the first heartbeat. It also needs "Enable live counter" on.
Webhook events arrive but records are not verified
The signing secret is missing or wrong. The source card shows "No signing secret set" or the event count stops increasing. Paste the secret again and resend a test event.
The toast is behind my cookie bar
Raise the z-index in the Look section of the widget. The default is 9999.