# Discovery

Business discovery: a signed profile per verified business that tells agents it accepts Provenance, its rules and which agent sells for it, served by Provenance and optionally on the business's own domain. Lookups and search need no key.

Related guide: [Be findable by agents](https://provenanceauth.com/docs/authorize/guides/be-findable-by-agents.md)

## Endpoints

- `GET /v1/authorize/settings/discovery`: [Retrieve your discovery settings](#get-v1-authorize-settings-discovery)
- `GET /v1/public/businesses/{business}/profile`: [Retrieve a business profile](#get-v1-public-businesses-business-profile)
- `GET /v1/public/businesses/{business}/agents/{agent_id}/agent-card.json`: [Retrieve a selling agent's A2A card](#get-v1-public-businesses-business-agents-agent-id-agent-card-json)
- `GET /v1/public/businesses/{business}/agent-card.json`: [Retrieve a domain's A2A card](#get-v1-public-businesses-business-agent-card-json)
- `PUT /v1/authorize/settings/discovery`: [Update your discovery settings](#put-v1-authorize-settings-discovery)
- `POST /v1/authorize/settings/discovery/check`: [Check how your domains serve the profile](#post-v1-authorize-settings-discovery-check)
- `GET /v1/public/businesses/lookup`: [Look up a business by domain](#get-v1-public-businesses-lookup)
- `GET /v1/public/businesses/search`: [Search businesses](#get-v1-public-businesses-search)

## The provenance profile object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | no | The type of object. One of `provenance_profile`. |
| `version` | string | no | The format version, "1". |
| `business` | object | no | The business. |
| `business.id` | string | no | The business id (`biz_…`). |
| `business.name` | string | no | The name agents see. |
| `business.origins` | array of strings | no | Its verified domains. |
| `accepts` | object | no | What it accepts. |
| `accepts.approvals` | boolean | no | Provenance approvals. |
| `accepts.network_mandates` | boolean | no | People's network permissions. |
| `accepts.rails` | array of enums | no | Payment rails. |
| `rules` | object | no | The business's rules. |
| `rules.person_required_over` | number \| null | no | Orders above it need a person's approval. |
| `rules.currency` | string | no | ISO 4217. |
| `categories` | array of strings | no | Category slugs. |
| `selling` | array of objects | no | Its selling agents. |
| `selling.agent_id` | string | no | The agent. |
| `selling.name` | string | no | The agent's name. |
| `selling.kids` | array of strings | no | Its active Ed25519 key ids. |
| `selling.origin` | string \| null | no | Its verified origin. |
| `selling.endpoints` | object | no | `a2a`, `mcp`, `offers` (present when set). |
| `selling.categories` | array of strings | no | What it sells. |
| `selling.seller_confirmation` | object | no | A seller's confirmation policy, published in every offer it signs and in the counterparty check. |
| `selling.seller_confirmation.offered` | enum | yes | Never, when the buyer asks (on orders it covers), or always. One of `never`, `on_request`, `always`. |
| `selling.seller_confirmation.min_amount` | number | no | With on_request: orders at or over this amount. |
| `selling.seller_confirmation.items` | array of strings | no | With on_request: or orders with one of these SKUs or categories, at any amount. |
| `selling.seller_confirmation.response_time` | enum | yes | The stated response time. One of `1h`, `4bh`, `1bd`, `2bd`. |
| `profile_url` | string | no | The hosted profile. |
| `directory_url` | string | no | The business's directory page. |
| `schema` | string | no | The format's JSON Schema. |
| `revision` | integer | no | Raised when the content changes. |
| `updated_at` | timestamp | no | When the content last changed. |
| `signature` | string | no | The compact JWS. |

### Example

```json
{
  "object": "provenance_profile",
  "version": "1",
  "business": {
    "id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
    "name": "Saltmarsh Data",
    "origins": [
      "https://agents.saltmarsh.example",
      "https://saltmarsh.example"
    ]
  },
  "accepts": {
    "approvals": true,
    "network_mandates": true,
    "rails": [
      "acp",
      "ap2",
      "checkout",
      "x402"
    ]
  },
  "rules": {
    "person_required_over": 1000,
    "currency": "USD"
  },
  "categories": [
    "data"
  ],
  "selling": [
    {
      "agent_id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
      "name": "Tidepool Sales",
      "kids": [
        "qeyAk7qV5aEbrqHuFPh4m2OpR6qDKlvDl3WF3Z0CB-U"
      ],
      "origin": "https://agents.saltmarsh.example",
      "endpoints": {
        "a2a": "https://agents.saltmarsh.example/a2a",
        "offers": "https://agents.saltmarsh.example/offers"
      },
      "categories": [
        "data",
        "reports"
      ],
      "seller_confirmation": {
        "offered": "never",
        "response_time": "1bd"
      }
    }
  ],
  "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
  "directory_url": "http://localhost:3000/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00",
  "schema": "http://localhost:3000/schemas/provenance-profile/v1.json",
  "revision": 1,
  "updated_at": "2026-11-07T19:22:53.607Z",
  "signature": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcHJvZmlsZStqd3QiLCJraWQiOiJmNzY1YTk5YWQwNTQzZDk5In0.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsInN1YiI6ImJpel8wMUpEU0FNUExFMFNBTFRNQVJTSDBEQVRBMDAiLCJpYXQiOjE3OTQwNzkzNzMsImV4cCI6MTc5NjY3MTM3MywicmV2aXNpb24iOjEsInByb2ZpbGVfc2hhMjU2IjoiYTAyZjdiMWQ3NDBkNTg0OGE5ZjY0ZTgyMjE3MzI5ZWRhNjU3YTQ1NWM3ZDIyMmUwYjg0Yjk3NzFmZmQ4M2Y2YiJ9.fNVLRRtdERYuqy_GL_EGNUAt2rKumz1br24JGEhxIR88ojLH5xNVVab124RMq9BWfy3OLS-cJkFgUX7HdZqgtg"
}
```

## Retrieve your discovery settings

`GET /v1/authorize/settings/discovery`

Settings → Store → Discovery: what your profile publishes, your verified domains, the selling agents you can list, the current signed profile and how each domain serves it.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

No parameters.

### Returns

The settings.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/authorize/settings/discovery" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/discovery`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/settings/discovery", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "discovery_settings",
  "id": "biz_01M6VQDE95R2YGEYT6QKP4QD9A",
  "published": false,
  "reason": null,
  "settings": {
    "name": null,
    "rails": [],
    "network_mandates": false,
    "rules": {
      "person_required_over": null,
      "currency": "USD"
    },
    "categories": [],
    "selling": []
  },
  "verified_origins": [],
  "eligible_agents": [],
  "profile": null,
  "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01M6VQDE95R2YGEYT6QKP4QD9A/profile",
  "well_known": {
    "path": "/.well-known/provenance.json",
    "redirect_to": "http://127.0.0.1:50287/v1/public/businesses/biz_01M6VQDE95R2YGEYT6QKP4QD9A/profile",
    "link_header": "</.well-known/provenance.json>; rel=\"provenance\""
  },
  "serving": [],
  "updated_at": null
}
```

## Retrieve a business profile

`GET /v1/public/businesses/{business}/profile`

The signed profile, by business id (`biz_…`), origin or host. No API key needed; cached for 5 minutes. Verify `signature` against `/.well-known/jwks.json`.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `business` | path | string | yes | A business id, an origin (URL-encoded) or a host. |

### Returns

The signed profile. See [the provenance profile object](#object).

### Errors

- [`profile_not_published`](https://provenanceauth.com/docs/platform/errors.md#profile_not_published)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
curl "$PROVENANCE_API/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile").json()
```

### Response 200

```json
{
  "object": "provenance_profile",
  "version": "1",
  "business": {
    "id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
    "name": "Saltmarsh Data",
    "origins": [
      "https://agents.saltmarsh.example",
      "https://saltmarsh.example"
    ]
  },
  "accepts": {
    "approvals": true,
    "network_mandates": true,
    "rails": [
      "acp",
      "ap2",
      "checkout",
      "x402"
    ]
  },
  "rules": {
    "person_required_over": 1000,
    "currency": "USD"
  },
  "categories": [
    "data"
  ],
  "selling": [
    {
      "agent_id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
      "name": "Tidepool Sales",
      "kids": [
        "qeyAk7qV5aEbrqHuFPh4m2OpR6qDKlvDl3WF3Z0CB-U"
      ],
      "origin": "https://agents.saltmarsh.example",
      "endpoints": {
        "a2a": "https://agents.saltmarsh.example/a2a",
        "offers": "https://agents.saltmarsh.example/offers"
      },
      "categories": [
        "data",
        "reports"
      ],
      "seller_confirmation": {
        "offered": "never",
        "response_time": "1bd"
      }
    }
  ],
  "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
  "directory_url": "http://localhost:3000/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00",
  "schema": "http://localhost:3000/schemas/provenance-profile/v1.json",
  "revision": 1,
  "updated_at": "2026-11-07T19:22:53.607Z",
  "signature": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcHJvZmlsZStqd3QiLCJraWQiOiJmNzY1YTk5YWQwNTQzZDk5In0.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsInN1YiI6ImJpel8wMUpEU0FNUExFMFNBTFRNQVJTSDBEQVRBMDAiLCJpYXQiOjE3OTQwNzkzNzMsImV4cCI6MTc5NjY3MTM3MywicmV2aXNpb24iOjEsInByb2ZpbGVfc2hhMjU2IjoiYTAyZjdiMWQ3NDBkNTg0OGE5ZjY0ZTgyMjE3MzI5ZWRhNjU3YTQ1NWM3ZDIyMmUwYjg0Yjk3NzFmZmQ4M2Y2YiJ9.fNVLRRtdERYuqy_GL_EGNUAt2rKumz1br24JGEhxIR88ojLH5xNVVab124RMq9BWfy3OLS-cJkFgUX7HdZqgtg"
}
```

## Retrieve a selling agent's A2A card

`GET /v1/public/businesses/{business}/agents/{agent_id}/agent-card.json`

An A2A agent card (A2A 1.0) for a published selling agent with an A2A endpoint. Its extension points to the signed profile. No API key needed.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `business` | path | string | yes | A business id, an origin (URL-encoded) or a host. |
| `agent_id` | path | string | yes | The selling agent. |

### Returns

The agent card.

### Errors

- [`profile_not_published`](https://provenanceauth.com/docs/platform/errors.md#profile_not_published)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
curl "$PROVENANCE_API/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/agents/agt_01JDSAMPLE0TIDEPOOL0SALES00/agent-card.json"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/agents/agt_01JDSAMPLE0TIDEPOOL0SALES00/agent-card.json`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/agents/agt_01JDSAMPLE0TIDEPOOL0SALES00/agent-card.json").json()
```

### Response 200

```json
{
  "name": "Tidepool Sales",
  "description": "Tidepool Sales sells for Saltmarsh Data. Its business profile, keys and rules are signed by Provenance.",
  "supportedInterfaces": [
    {
      "url": "https://agents.saltmarsh.example/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "provider": {
    "organization": "Saltmarsh Data",
    "url": "https://agents.saltmarsh.example"
  },
  "version": "1",
  "documentationUrl": "http://localhost:3000/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00",
  "capabilities": {
    "extensions": [
      {
        "uri": "http://localhost:3000/schemas/provenance-profile/v1.json",
        "description": "The business's signed Provenance profile: verify this agent and its key ids against it before you buy.",
        "required": false,
        "params": {
          "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
          "business_id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
          "agent_id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
          "kids": [
            "qeyAk7qV5aEbrqHuFPh4m2OpR6qDKlvDl3WF3Z0CB-U"
          ]
        }
      }
    ]
  },
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json"
  ],
  "skills": [
    {
      "id": "data",
      "name": "data",
      "description": "Offers in data from Saltmarsh Data.",
      "tags": [
        "data"
      ]
    },
    {
      "id": "reports",
      "name": "reports",
      "description": "Offers in reports from Saltmarsh Data.",
      "tags": [
        "reports"
      ]
    }
  ]
}
```

## Retrieve a domain's A2A card

`GET /v1/public/businesses/{business}/agent-card.json`

The card a business's domain serves at `/.well-known/agent-card.json` through our middleware: its selling agent on that origin with an A2A endpoint. 404 when the domain has a card of its own, which always takes precedence. No API key needed.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `business` | path | string | yes | A business id, an origin (URL-encoded) or a host. |
| `origin` | query | string | no | The domain serving the card (default the business key's origin). |

### Returns

The agent card.

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`profile_not_published`](https://provenanceauth.com/docs/platform/errors.md#profile_not_published)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
curl "$PROVENANCE_API/v1/public/businesses/saltmarsh.example/agent-card.json?origin=https%3A%2F%2Fagents.saltmarsh.example"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/saltmarsh.example/agent-card.json?origin=https%3A%2F%2Fagents.saltmarsh.example`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/saltmarsh.example/agent-card.json?origin=https%3A%2F%2Fagents.saltmarsh.example").json()
```

### Response 200

```json
{
  "name": "Tidepool Sales",
  "description": "Tidepool Sales sells for Saltmarsh Data. Its business profile, keys and rules are signed by Provenance.",
  "supportedInterfaces": [
    {
      "url": "https://agents.saltmarsh.example/a2a",
      "protocolBinding": "JSONRPC",
      "protocolVersion": "1.0"
    }
  ],
  "provider": {
    "organization": "Saltmarsh Data",
    "url": "https://agents.saltmarsh.example"
  },
  "version": "1",
  "documentationUrl": "http://localhost:3000/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00",
  "capabilities": {
    "extensions": [
      {
        "uri": "http://localhost:3000/schemas/provenance-profile/v1.json",
        "description": "The business's signed Provenance profile: verify this agent and its key ids against it before you buy.",
        "required": false,
        "params": {
          "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
          "business_id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
          "agent_id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
          "kids": [
            "qeyAk7qV5aEbrqHuFPh4m2OpR6qDKlvDl3WF3Z0CB-U"
          ]
        }
      }
    ]
  },
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json"
  ],
  "skills": [
    {
      "id": "data",
      "name": "data",
      "description": "Offers in data from Saltmarsh Data.",
      "tags": [
        "data"
      ]
    },
    {
      "id": "reports",
      "name": "reports",
      "description": "Offers in reports from Saltmarsh Data.",
      "tags": [
        "reports"
      ]
    }
  ]
}
```

## Update your discovery settings

`PUT /v1/authorize/settings/discovery`

Owner or admin. Choose what the profile publishes and publish it. Publishing needs a verified domain (a store origin or a selling agent's origin). Every change signs the profile again and raises its `revision`.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `published` | body | boolean | no | Publish the profile (needs a verified domain). |
| `name` | body | string \| null | no | The name agents see; null uses your branding name. |
| `rails` | body | array of enums | no | The rails you accept. |
| `network_mandates` | body | boolean | no | You accept people's network permissions. |
| `rules` | body | object | no | The amount above which a person approves. |
| `rules.person_required_over` | body | number \| null | no | Orders above it need a person's approval. |
| `rules.currency` | body | string | no | ISO 4217. |
| `categories` | body | array of strings | no | Slugs used by search. |
| `selling` | body | array of objects | no | Your selling agents (each selling, with a verified origin and an active key). |
| `selling.agent_id` | body | string | yes | The agent. |
| `selling.endpoints` | body | object | no | Where agents reach it. |
| `selling.endpoints.a2a` | body | string \| null | no | The A2A endpoint (an agent card is generated with it). |
| `selling.endpoints.mcp` | body | string \| null | no | The MCP server. |
| `selling.endpoints.offers` | body | string \| null | no | Where it serves signed offers. |
| `selling.categories` | body | array of strings | no | What it sells. |

### Returns

The settings.

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`discovery_origin_unverified`](https://provenanceauth.com/docs/platform/errors.md#discovery_origin_unverified)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/authorize/settings/discovery" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "rails": [
      "x402",
      "checkout"
    ],
    "rules": {
      "person_required_over": 1000,
      "currency": "USD"
    },
    "categories": [
      "data"
    ]
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/discovery`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "rails": [
      "x402",
      "checkout"
    ],
    "rules": {
      "person_required_over": 1000,
      "currency": "USD"
    },
    "categories": [
      "data"
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/authorize/settings/discovery", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "rails": [
        "x402",
        "checkout"
    ],
    "rules": {
        "person_required_over": 1000,
        "currency": "USD"
    },
    "categories": [
        "data"
    ]
}).json()
```

### Response 200

```json
{
  "object": "discovery_settings",
  "id": "biz_01M6VQDE96WMDQM2SP8GJNVSFY",
  "published": false,
  "reason": null,
  "settings": {
    "name": null,
    "rails": [
      "checkout",
      "x402"
    ],
    "network_mandates": false,
    "rules": {
      "person_required_over": 1000,
      "currency": "USD"
    },
    "categories": [
      "data"
    ],
    "selling": []
  },
  "verified_origins": [],
  "eligible_agents": [],
  "profile": null,
  "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01M6VQDE96WMDQM2SP8GJNVSFY/profile",
  "well_known": {
    "path": "/.well-known/provenance.json",
    "redirect_to": "http://127.0.0.1:50287/v1/public/businesses/biz_01M6VQDE96WMDQM2SP8GJNVSFY/profile",
    "link_header": "</.well-known/provenance.json>; rel=\"provenance\""
  },
  "serving": [],
  "updated_at": null
}
```

## Check how your domains serve the profile

`POST /v1/authorize/settings/discovery/check`

Fetches `/.well-known/provenance.json` and `/.well-known/agent-card.json` from each verified domain now (at most once a minute) and reports each domain's `serving`: `match`, `stale` (reason `profile_stale`; agents get the hosted profile), `absent` or `unreachable`. We also check daily.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

No parameters.

### Returns

The settings, with fresh serving results.

### Errors

- [`profile_not_published`](https://provenanceauth.com/docs/platform/errors.md#profile_not_published)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/authorize/settings/discovery/check" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/discovery/check`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/settings/discovery/check", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "discovery_settings",
  "id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
  "published": true,
  "reason": null,
  "settings": {
    "name": "Saltmarsh Data",
    "rails": [
      "acp",
      "ap2",
      "checkout",
      "x402"
    ],
    "network_mandates": true,
    "rules": {
      "person_required_over": 1000,
      "currency": "USD"
    },
    "categories": [
      "data"
    ],
    "selling": []
  },
  "verified_origins": [
    "https://saltmarsh.example"
  ],
  "eligible_agents": [],
  "profile": null,
  "profile_url": "https://api.provenanceauth.com/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
  "well_known": {
    "path": "/.well-known/provenance.json",
    "redirect_to": "https://api.provenanceauth.com/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
    "link_header": "</.well-known/provenance.json>; rel=\"provenance\""
  },
  "serving": [
    {
      "object": "discovery_serving",
      "origin": "https://saltmarsh.example",
      "method": "identify",
      "status": "match",
      "reason": null,
      "stale_since": null,
      "own_agent_card": false,
      "checked_at": "2026-10-31T09:00:00.000Z"
    }
  ],
  "updated_at": "2026-10-31T08:58:00.000Z"
}
```

## Look up a business by domain

`GET /v1/public/businesses/lookup`

The signed profile of the verified business at this origin or host. No API key needed; cached for 5 minutes; 60 a minute per address. One 404 for an unknown, unverified or unpublished business.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `origin` | query | string | yes | An origin or a host, such as https://saltmarsh.example. |

### Returns

The signed profile. See [the provenance profile object](#object).

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`profile_not_published`](https://provenanceauth.com/docs/platform/errors.md#profile_not_published)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
curl "$PROVENANCE_API/v1/public/businesses/lookup?origin=https%3A%2F%2Fsaltmarsh.example"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/lookup?origin=https%3A%2F%2Fsaltmarsh.example`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/lookup?origin=https%3A%2F%2Fsaltmarsh.example").json()
```

### Response 200

```json
{
  "object": "provenance_profile",
  "version": "1",
  "business": {
    "id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
    "name": "Saltmarsh Data",
    "origins": [
      "https://agents.saltmarsh.example",
      "https://saltmarsh.example"
    ]
  },
  "accepts": {
    "approvals": true,
    "network_mandates": true,
    "rails": [
      "acp",
      "ap2",
      "checkout",
      "x402"
    ]
  },
  "rules": {
    "person_required_over": 1000,
    "currency": "USD"
  },
  "categories": [
    "data"
  ],
  "selling": [
    {
      "agent_id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
      "name": "Tidepool Sales",
      "kids": [
        "qeyAk7qV5aEbrqHuFPh4m2OpR6qDKlvDl3WF3Z0CB-U"
      ],
      "origin": "https://agents.saltmarsh.example",
      "endpoints": {
        "a2a": "https://agents.saltmarsh.example/a2a",
        "offers": "https://agents.saltmarsh.example/offers"
      },
      "categories": [
        "data",
        "reports"
      ],
      "seller_confirmation": {
        "offered": "never",
        "response_time": "1bd"
      }
    }
  ],
  "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
  "directory_url": "http://localhost:3000/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00",
  "schema": "http://localhost:3000/schemas/provenance-profile/v1.json",
  "revision": 1,
  "updated_at": "2026-11-07T19:22:53.607Z",
  "signature": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcHJvZmlsZStqd3QiLCJraWQiOiJmNzY1YTk5YWQwNTQzZDk5In0.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsInN1YiI6ImJpel8wMUpEU0FNUExFMFNBTFRNQVJTSDBEQVRBMDAiLCJpYXQiOjE3OTQwNzkzNzMsImV4cCI6MTc5NjY3MTM3MywicmV2aXNpb24iOjEsInByb2ZpbGVfc2hhMjU2IjoiYTAyZjdiMWQ3NDBkNTg0OGE5ZjY0ZTgyMjE3MzI5ZWRhNjU3YTQ1NWM3ZDIyMmUwYjg0Yjk3NzFmZmQ4M2Y2YiJ9.fNVLRRtdERYuqy_GL_EGNUAt2rKumz1br24JGEhxIR88ojLH5xNVVab124RMq9BWfy3OLS-cJkFgUX7HdZqgtg"
}
```

## Search businesses

`GET /v1/public/businesses/search`

Businesses with a published profile, ordered by name (never ranked or recommended), each selling agent with its record in two facts. No API key needed; cached for 5 minutes.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `category` | query | string | no | The business's category or one of its selling agents'. |
| `sells_to_agents` | query | enum | no | Only businesses that publish a selling agent. One of `true`, `false`. |
| `limit` | query | integer | no | Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid. |
| `cursor` | query | string | no | Opaque; pass a response's `next_cursor` back to get the next page. |

### Returns

A page of businesses.

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
curl "$PROVENANCE_API/v1/public/businesses/search?category=data&sells_to_agents=true"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/search?category=data&sells_to_agents=true`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/search?category=data&sells_to_agents=true").json()
```

### Response 200

```json
{
  "object": "list",
  "data": [
    {
      "object": "directory_business",
      "id": "biz_01JDSAMPLE0SALTMARSH0DATA00",
      "name": "Saltmarsh Data",
      "origins": [
        "https://agents.saltmarsh.example",
        "https://saltmarsh.example"
      ],
      "categories": [
        "data"
      ],
      "accepts": {
        "approvals": true,
        "network_mandates": true,
        "rails": [
          "acp",
          "ap2",
          "checkout",
          "x402"
        ]
      },
      "selling": [
        {
          "agent_id": "agt_01JDSAMPLE0TIDEPOOL0SALES00",
          "name": "Tidepool Sales",
          "categories": [
            "data",
            "reports"
          ],
          "record": {
            "orders": 0,
            "rating": null,
            "rating_count": 0,
            "line": "New · 0 orders"
          }
        }
      ],
      "profile_url": "http://127.0.0.1:50287/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```
