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.