# Identify

Identify lets you name the agents and bots on every request to your site, trace a signed agent to the person who approved it without learning who they are, and apply your own traffic policy.

Identify lets you name the agents and bots on every request to your site, see whether a person stands behind an agent, and decide what each one may do.

## When to use it

- Welcome a signed shopping agent and ask for its shopper's approval only at checkout.
- Block AI training crawlers while search crawlers and assistants keep their access.
- Rate-limit or block one person's agents by a pseudonym, without learning who the person is.

## How it works

1. An agent signs each request with its own key (Web Bot Auth, RFC 9421) and names the directory that publishes the key.
2. Your middleware verifies the signature in-process, reads the person's Authorize approval when there is one, and applies your traffic policy from a cached bundle.
3. Your site serves, blocks or rate-limits the request, or answers with an approval challenge the agent knows how to meet.

1. **A request to your site**: Signature, Signature-Agent, Provenance-Intent
2. **Identify**: verify, classify, apply your policy
3. **A traffic assessment**: agent, person, decision

## Key objects

| Object | What it is | Where you get it |
| --- | --- | --- |
| [Traffic assessment](https://provenanceauth.com/docs/identify/concepts/traffic-assessment.md) | What Identify concluded about one request: the agent, the person behind it, the rule score and your policy's decision | [`POST /v1/identify/assessments`](https://provenanceauth.com/docs/api/traffic-checks.md#post-v1-identify-assessments) |
| Signing key | An agent's Ed25519 public key, published in its key directory | [`POST /v1/identify/agents/{id}/signing_keys`](https://provenanceauth.com/docs/api/signed-agents.md#post-v1-identify-agents-id-signing-keys) |
| [Traffic policy](https://provenanceauth.com/docs/identify/guides/traffic-policy.md) | Your versioned rules: allow, block, rate-limit, hand off or require a person | [`PUT /v1/mandate/policies`](https://provenanceauth.com/docs/api/policies.md#put-v1-mandate-policies) |
| Policy bundle | Everything your middleware needs to decide without a network call | [`GET /v1/identify/policy_bundle`](https://provenanceauth.com/docs/api/traffic-checks.md#get-v1-identify-policy-bundle) |
| Traffic decision | A recorded verdict, kept for your retention period | [`GET /v1/identify/decisions`](https://provenanceauth.com/docs/api/traffic-decisions.md#get-v1-identify-decisions) |

## Core endpoints

| Endpoint | Use it to |
| --- | --- |
| [`POST /v1/identify/assessments`](https://provenanceauth.com/docs/api/traffic-checks.md#post-v1-identify-assessments) | Check one request from your server. |
| [`GET /v1/identify/policy_bundle`](https://provenanceauth.com/docs/api/traffic-checks.md#get-v1-identify-policy-bundle) | Load the bundle your middleware decides from. |
| [`POST /v1/identify/agents/{id}/signing_keys`](https://provenanceauth.com/docs/api/signed-agents.md#post-v1-identify-agents-id-signing-keys) | Publish your own agent's signing key. |
| [`GET /v1/identify/decisions/summary`](https://provenanceauth.com/docs/api/traffic-decisions.md#get-v1-identify-decisions-summary) | See which agents and bots reached your site. |
| [`PUT /v1/identify/settings/site`](https://provenanceauth.com/docs/api/identify-settings.md#put-v1-identify-settings-site) | Set your route map and origins. |

## Your first call

Check a request the way your server received it. The sandbox key needs no signup.

**curl**

```bash
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5

curl $PROVENANCE_API/v1/identify/assessments \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request": {
      "method": "GET",
      "url": "https://quillstack.example/products/linen-a5",
      "headers": { "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15", "accept-language": "en-US" }
    }
  }'
```

**Node**

```ts
const verdict = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    request: {
      method: "GET",
      url: "https://quillstack.example/products/linen-a5",
      headers: { "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15", "accept-language": "en-US" },
    },
  }),
})).json();
console.log(verdict.class, verdict.decision.action);
```

**Python**

```python
import os, httpx

verdict = httpx.post(
    f"{os.environ['PROVENANCE_API']}/v1/identify/assessments",
    headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"},
    json={"request": {
        "method": "GET",
        "url": "https://quillstack.example/products/linen-a5",
        "headers": {"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15", "accept-language": "en-US"},
    }},
).json()
print(verdict["class"], verdict["decision"]["action"])
```

```json
{
  "object": "traffic_assessment",
  "id": "tas_01M5T7VVDVNHV05N8JN46YNCZC",
  "class": "unknown",
  "agent": null,
  "human": null,
  "bot_score": 0,
  "signals": [],
  "vendor_score": { "status": "not_configured" },
  "decision": { "action": "allow", "shadow": null },
  "policy": null,
  "action": "browse",
  "source": "hosted",
  "created_at": "2026-10-25T19:16:12.346Z",
  "response": null
}
```

An unsigned request is `unknown`: Identify names what it can prove and never guesses an identity. The [quickstart](https://provenanceauth.com/docs/identify/quickstart.md) registers an agent and checks a signed request.

## Next steps

- [Identify quickstart](https://provenanceauth.com/docs/identify/quickstart.md): Register an agent, publish its key and check a signed request.
- [Verify signed agents](https://provenanceauth.com/docs/identify/guides/verify-signed-agents.md): Run the middleware in front of your site.
- [API reference](https://provenanceauth.com/docs/api.md#resources-identify): Every Identify endpoint, with parameters and responses.
