Skip to content
All articles

Product guides

Using the Records API for purchases from your own backend

Reference for POST /api/v1/widgets/{token}/records: fields, idempotency, responses, visitor attribution, and why records are labelled Imported, never Verified.

Provedly team··6 min read

If your purchases do not come through Stripe Checkout, Shopify or WooCommerce, the Records API is how they reach Provedly. One server-to-server POST per order, authenticated with a per-widget bearer key, and the purchase appears as a notification within the lookback window. Records created this way carry a visible "Imported" label and never the "Verified" mark, and this post explains that rule as well as the mechanics.

The endpoint

POST https://provedly.app/api/v1/widgets/{token}/records
Authorization: Bearer <widget api key>
Content-Type: application/json

The key is generated per widget on the Data tab and can be rotated there. Treat it like any secret: environment variable on the server, never in client-side code. The endpoint is server to server only; calls from a browser will be visible to anyone with devtools, and a leaked key lets a stranger post records into your widget.

Fields

Field Rules Notes
name required, string, max 120 Reformatted by your name format 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's default product name
price optional, max 30 Free text such as "$49" or "€39"
avatar_url optional, URL Used when avatar style is "image"
external_id optional, max 120 Unique per widget; a repeat returns 422
occurred_at optional, ISO 8601 Defaults to now
visitor optional The Provedly visitor id, for attribution

Send what you have. A record with only name is valid and will render with the widget's default product and no location.

A minimal example

curl -X POST https://provedly.app/api/v1/widgets/pp_your_token/records \
  -H "Authorization: Bearer $PROVEDLY_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-08-12T14:03:00Z"
  }'

Responses:

201 Created
{ "id": 812, "hash": "9c1e0b7a…", "verified": false, "occurred_at": "2026-08-12T14:03:00+00:00" }

401 Unauthorized   wrong or missing bearer key
422 Unprocessable  validation errors, including a duplicate external_id

Note "verified": false in the success response. It is not a bug and there is no flag to flip it.

When to call it

Call after payment is confirmed, not when the order is created. A record for an abandoned or failed checkout is a false notification, which is exactly what the system is designed to avoid. In most backends that means the handler for your payment provider's success callback, or the job that marks an order paid.

Always send external_id. Payment callbacks retry, queues redeliver, and deploys restart workers mid-job. With external_id set to your order id, the second attempt returns 422 and you can treat that as success. Without it, you will eventually show the same purchase twice.

Set occurred_at to the actual payment time rather than letting it default. If a queue backs up for twenty minutes, the toast still says the right thing, and the record falls in the right place on the verification page.

Attribution

The dashboard's proof-assisted orders metric counts buyers who saw a notification before buying, matched by visitor id inside a 30-day window. For API records, that only works if you send the id.

On the client, at the point where the visitor begins checkout:

const visitor = window.Provedly?.visitorId();
// include it in your checkout form or API call

On the server, pass it through as visitor in the record. If your checkout lives on a different domain from the widget, carry the id across in the URL or your session. Provedly never estimates attribution, so a missing id produces an empty metric rather than a wrong one. See Measuring proof-assisted orders.

Why API records are never "Verified"

Provedly can verify a Stripe, Shopify or WooCommerce webhook because the provider signs the payload with a secret and Provedly checks the signature. A POST from your server carries a bearer key, which proves the caller holds the key, not that a payment happened. A merchant could script a hundred records in a loop. Provedly cannot tell the difference from the outside, so API records never get the Verified mark. They show in the widget with an "Imported" label that no setting, plan or support request can remove, and the public verification page lists them under "Site owner's backend (API)".

This is a deliberate choice, and it is the main reason Provedly exists. Most notification tools, as of October 2026 and per their listings, accept arbitrary purchase entries and present them identically to real ones. A visitor has no way to know. With Provedly, only signed orders show the Verified mark, and the verification page lists every source. If you want the Verified mark, route payments through a provider with a signed webhook, as described in Stripe webhooks for verified purchases.

Backfilling

For history, do not loop the API over last year's orders. Use CSV import on the Data tab instead; it handles duplicates by name and city within an hour, sets occurred_at per row, and stores rows outside the lookback window without showing them. The API is for the live stream. See Importing past orders from CSV.

Frequently asked questions

Is there a rate limit?

Post one record per order as it happens and you will not reach any limit. For bulk history, use CSV import.

Can I update or delete a record after posting?

Records can be removed from the dashboard. There is no update endpoint; post a corrected record with a new external_id and delete the old one.

Can I pass a price in a currency the widget does not know?

Yes. price is free text up to 30 characters, shown as you send it. Format it on your side, including the currency symbol.

The API and verified webhooks are included on the Free plan: read the full reference or create a widget.

apibackendintegration

Get new articles by email

Honest social proof, verified purchases and what actually moves conversion. A few emails a month at most; leave with one click.

We email you once to confirm. Your address is used only for this newsletter; see the privacy policy.

Show proof you can stand behind.

Free plan, one site, 2,000 impressions a month, verified purchases included. The badge on the free plan links to your verification page, which is the point.