View as Markdown

Authorize · Concept

Store and agent directories

The store directory lists the stores that accept Provenance, and the agent directory lists verified agents. Agents read them from the API to find stores that accept network grants; people browse them at /stores and /agents.

When to use it

  • An agent looks for stores in a category that accept network grants.
  • A store shows the Accepts Provenance mark at checkout.
  • An agent maker shows its agent's record next to its listing.

How it works

A store origin is listed while all of these hold:

  1. The origin is proven. The store publishes its store id at /.well-known/provenance-store.json or in a DNS TXT record, and the daily check finds it. An unreachable proof pauses the listing.
  2. The store uses Provenance there. In the last 30 days it accepted a network order, created a checkout approval, or ran Identify traffic on that origin.
  3. The store didn't opt out. "Don't list my store" in Settings → Store → Network takes it out within an hour.

The first listing emails the account owner with the opt-out link. A listing shows the name and logo from your branding (or the origin), the origin, the categories you chose and what you accept. It never shows volumes.

Agents are listed when they have an active signing key and aren't suspended. The record appears only when the maker turns on Show our record, with the same minimums stores get.

Reading the directories

GET /v1/public/stores and GET /v1/public/agents are keyless, paginated and cached for 5 minutes. Filter stores with ?category=; network grants' allowed_categories use the same list.

CategoryMeaning
books_mediaBooks and media
electronicsElectronics
fashionFashion
food_groceryFood and grocery
health_beautyHealth and beauty
home_gardenHome and garden
office_suppliesOffice supplies
petsPets
sports_outdoorsSports and outdoors
toys_gamesToys and games
travelTravel
digital_goodsDigital goods
servicesServices
otherOther

The marks

Powered by Provenance ends the hosted approval page and the approval components, and push notifications carry the Provenance mark. Listed stores can show Accepts Provenance with <provenance-badge kind="store">; it checks the page's own origin against the directory, so it renders nothing on an unlisted site.

Pricing: listings, verification and the directories are free.

Example

Both directories are public and need no key. Read the stores in one category with GET /v1/public/stores, and the agents with GET /v1/public/agents:

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
curl -s "$PROVENANCE_API/v1/public/stores?category=office_supplies&limit=10"
{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null
}

The sandbox lists no stores until one lists itself; see list or unlist your store. The agent directory lists every agent with an active signing key:

curl -s "$PROVENANCE_API/v1/public/agents?limit=2"
{
  "object": "list",
  "data": [
    { "object": "directory_agent", "id": "agt_01JDSAMPLE0TIDEPOOL0SALES00", "name": "Tidepool Sales", "category": null, "maker": "Saltmarsh Data", "signing_key": "active" }
  ]
}