---
title: "Discovery fields"
description: "The agent-signup.json discovery document field by field for Agent Identity Protocol 2.0 (spec v2.1.0), with hosted terms and optional attestation."
image: "https://docs.agentregistrar.dev/og/docs-default.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.agentregistrar.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Discovery fields

A relying party publishes one identity-only document at `GET
/.well-known/agent-signup.json`. This page is a lookup table for that document.
The normative rules are in [the
specification](/protocol/specification/#5-discovery-document-reference-identity-only);
this page does not replace them.

The machine-readable schema is served at
[`/protocol/agent-signup.schema.json`](/protocol/agent-signup.schema.json)
with content type `application/schema+json`. Validate a document with the
[conformance validator](/protocol/validator/). This table follows spec
`v2.1.0`. The downloadable schema asset and the generated protocol pages are
pinned by the docs release; when they lag this table, the spec source is
canonical.

## Required fields

| Field | Type | Rule | Section |
| :--- | :--- | :--- | :--- |
| `protocol` | string | Exactly `"agent-identity-protocol"`. Any other value means the service is unsupported; do not fall back. | [5.1](/protocol/specification/#51-required-fields) |
| `protocol_version` | string | Exactly `"2.0"`. Identifies the wire protocol version; any other value means the version is unsupported. | [5.1](/protocol/specification/#51-required-fields) |
| `audience` | string | Stable, case-sensitive service identifier with no whitespace. The broker places this exact value in the assertion `aud`; the relying party rejects a mismatch. | [5.1](/protocol/specification/#51-required-fields) |
| `provider_name` | string | Human-readable service name. | [5.1](/protocol/specification/#51-required-fields) |
| `issuer_allowlist` | array of strings | Non-empty, unique absolute issuer origins. No path, query, fragment or wildcard. Trailing slashes are normalized away. The broker `iss` must match one entry exactly. | [5.1](/protocol/specification/#51-required-fields), [5.4](/protocol/specification/#54-field-rules) |
| `required_scopes` | array of strings | Unique non-empty scopes. Brokered signup must include `tos:accept`. | [5.1](/protocol/specification/#51-required-fields) |
| `terms.version` | string | Terms version. Change it whenever the agreement changes materially. | [5.1](/protocol/specification/#51-required-fields), [6](/protocol/specification/#6-tos-binding) |
| `terms.url` | string | Absolute URL of the provider-hosted agreement that a human can read. HTTPS is required except the documented localhost development exception. The broker fetches this URL at signup and hashes the exact response bytes. | [5.1](/protocol/specification/#51-required-fields) |
| `endpoints.agent_signup` | string | Absolute URL that accepts `POST` with `Authorization: Bearer <assertion>`. The only endpoint in the protocol. | [5.1](/protocol/specification/#51-required-fields) |

## Optional fields

| Field | Type | Rule | Section |
| :--- | :--- | :--- | :--- |
| `spec` | string | Absolute URL of the versioned specification. Optional; implementers may omit it. | [5.2](/protocol/specification/#52-optional-fields) |
| `provider_url` | string | Canonical service URL. If present, it must share the signup endpoint's registrable domain. | [5.2](/protocol/specification/#52-optional-fields), [11](/protocol/specification/#11-contract-e-identity-facts--the-context-pointer) |
| `contact` | string | Security, abuse or legal contact: an email address or an HTTPS URL. The localhost development exception (`http://localhost`, `http://127.0.0.1`) is the only `http` form allowed. | [5.2](/protocol/specification/#52-optional-fields) |
| `updated_at` | string | ISO 8601 timestamp for humans and debugging. Not a freshness signal for the terms. | [5.2](/protocol/specification/#52-optional-fields) |
| `attestation` | object | The optional Contract G **source**: `{ "mode": "broker" \| "provider", "uri": "<stable absolute HTTPS URL>" }`. It names a URI that serves `{ "attestation": "<compact JWS>" }`; it never carries the token. Broker-managed is the default and may be keyless (`keys: []`). Absence means **unverified**. | [5.2](/protocol/specification/#52-optional-fields), [5.4](/protocol/specification/#54-field-rules), [14](/protocol/specification/#14-contract-g--rp-attestation) |
| `extensions` | object | Non-capability vendor metadata keyed by reverse-DNS namespace, for example `dev.example`. It must not advertise provisioning, catalogs, SKUs or resource endpoints. | [5.2](/protocol/specification/#52-optional-fields), [5.3](/protocol/specification/#53-forbidden-fields-vendor-capability-surface) |

`rp_attestation` was removed in `v1.3.0`. A document that still contains it is
non-conformant with reason `rp_attestation_removed`; there is no compatibility
field, embedded fallback, or dual publication. Contract F receipt and abuse
bodies are a different surface and keep the historical field.

`terms.text` and `terms.sha256` were removed in `v2.0.0`. The provider hosts the
agreement at `terms.url`. There is no compatibility field and no dual
publication; publish `{ version, url }` in one deploy.

Unknown additive fields must be ignored by consumers. Producers should put
non-capability metadata under `extensions.<reverse-dns-namespace>` so typos stay
visible. Moving a vendor capability under `extensions` does not make it
conformant.

## The optional attestation source

`attestation` is the only discovery field that describes the provider's
broker-verified identity, and it carries no token. It has exactly two fields:

```json
{
  "attestation": {
    "mode": "broker",
    "uri": "https://agentregistrar.dev/api/broker/provider-verification?origin=https%3A%2F%2Fprovider.example&audience=example"
  }
}
```

- `mode` is exactly `broker` or `provider`. There are no aliases.
- `uri` is a stable, absolute HTTPS URL with no credentials and no fragment.
  `http://localhost` and `http://127.0.0.1` are the development exception.
- A `broker` URI origin must be in the document's `issuer_allowlist` and, when
  the verifier configures one, the trusted-broker list.
- A `provider` URI origin must be the origin of the discovery document the
  verifier actually fetched, or a subdomain of it. A third-party host, including
  a CDN, is rejected.
- The object is closed: `mode` and `uri` are its complete vocabulary.

The URI serves the same source document in both modes, as `application/json`:

```json
{ "attestation": "<compact JWS>" }
```

The JWS is the Contract G token (`typ: agent-rp-attestation+jwt`, `alg: EdDSA`)
that binds `rp.origin`, `rp.audience`, the provider identity, the assurance
level, and the public `keys[]`. Additional envelope fields are ignored. A raw
JWT body is rejected.

Rules:

- The attestation `rp.origin` must equal the canonical origin of the discovery
  document the verifier actually fetched.
- `rp.audience` must equal `discovery.audience`.
- The token is public and copyable; the origin and audience binding prevent
  replay on another service.
- It must not carry a terms hash, scopes, endpoints, `provider_url`, account ids,
  prices, or private material. Its `keys[]` may be empty; no RP signing key is
  needed to accept agent signups.
- A conformant document without `attestation` is **unverified**. An expired,
  invalid, suspended, or unavailable source is a verification result, never a
  conformance failure by itself. A malformed object or a failed host binding is
  a conformance error.
- Do not add any other provider-identity or provider-capability field to
  discovery.

Broker-managed is the default and needs no renewal job. Provider-managed is an
opt-in and makes expiry the revocation bound. See [Trust and
limits](/start/trust-and-limits/) and [Verify
assertions](/providers/guides/verify-assertions/) for the policy and verification
steps. If you are a provider and want the credential, see the [provider
quickstart](/providers/quickstart/).

## Forbidden fields

These must not appear at any nesting depth, including under `extensions`:

| Forbidden surface | Examples |
| :--- | :--- |
| Catalogs and commercial surface | `instance_catalog`, SKUs, pricing tiers, free-tier quotas, product specs |
| Provisioning and resource endpoints | `endpoints.provision`, resource endpoints, instance lifecycle |
| Legacy signup endpoints | `endpoints.email_signup`, `endpoints.verify_otp` |
| Broker receipt callback | `endpoints.broker_signup_receipt` |
| Credentials and API usage | resource credentials, vendor API or SDK usage metadata |

A document is a parameter document, not a capability catalog. Vendor capabilities belong in the post-signup context guide. See [Scope boundaries](/protocol/scope-boundaries/) and the normative [5.3](/protocol/specification/#53-forbidden-fields-vendor-capability-surface).

## Terms at a URL

- `terms.url` must serve the complete agreement with stable bytes. No redirect,
  no per-request token, no variant that changes between fetches.
- The broker fetches `terms.url` at signup and records
  `sha256:<64 lowercase hex>` over the exact response bytes in
  `delegation.accepted_rp_tos_hash` and in the terms ledger.
- The relying party checks `delegation.accepted_rp_tos_url` against its current
  `terms.url` (trailing slashes normalized). It may also check the hash when the
  URL serves deterministic bytes.
- When the terms change, publish the new bytes and a new `terms.version` before
  accepting new signups. A bounded grace period for in-flight assertions is a
  relying-party policy documented outside discovery; it should not exceed 24
  hours.

See [terms binding](/protocol/specification/#6-tos-binding) and [Re-acceptance](/protocol/specification/#61-re-acceptance).

## Minimal conformant example

This document contains only the required identity fields. It passes the current
validator in file mode with zero errors and zero warnings. The optional
`attestation` object is absent, so the document is conformant and
**unverified**.

```json
{
  "protocol": "agent-identity-protocol",
  "protocol_version": "2.0",
  "audience": "example-provider",
  "provider_name": "Example Provider",
  "issuer_allowlist": ["https://agentregistrar.dev"],
  "required_scopes": ["tos:accept"],
  "terms": {
    "version": "2026.1",
    "url": "https://example.com/terms"
  },
  "endpoints": {
    "agent_signup": "https://example.com/api/signup/agent"
  }
}
```

The example is illustrative. Replace the audience, URLs, scopes and terms with the service's own values, and serve the agreement at `terms.url`. The allowlist entry is the live broker origin (`https://agentregistrar.dev`); a provider that accepts a different broker lists that broker's origin instead.

## Known limits

- Discovery carries no terms digest. The broker computes it from the bytes it fetches at `terms.url`; a digest the provider could not reproduce from a served page would be meaningless.
- Discovery conformance is cheap to publish. A valid document is not a statement about the service's security, uptime or product.
- The document itself is not signed. The optional `attestation` object
  names a signed statement about the provider; it is not a signature over the
  discovery document. Trust in the document comes from TLS plus the issuer
  allowlist; the assertion and the attestation are separately signed.
- Consumers must ignore unknown additive fields, so a producer can add an identity field without a schema change. The validator warns on unknown top-level fields; warnings do not fail conformance.

## Verify

- Fetch the published document and confirm `Content-Type: application/json`.
- Confirm `terms` has exactly `version` and `url`, and that `terms.url` serves stable bytes with no redirect.
- Run the [validator](/protocol/validator/) against the document.
- Confirm no forbidden field appears at any depth, including under `extensions`.

Source: https://docs.agentregistrar.dev/protocol/discovery-fields/index.mdx
