# Developers

> Endpoints, headers and formats a developer meets when integrating with a Tollgenic-protected site or running an agent against one. Pre-alpha; what is live and what is planned is marked.

Source: https://tollgenic.com/developers

Publisher applications are open. Gateway onboarding is in development; payment enforcement and production rollout are not part of this launch.

Tollgenic is in private alpha. This page tells you what is live on this site today, what the formats look like, and what is planned, in that order. Nothing here is a stable API yet.

## Live on this site

| Path | What it is | Status |
| --- | --- | --- |
| `/llms.txt` | llms.txt v2 index of this site with markdown alternates | live |
| `/*.md` | Markdown alternates for content pages (`rel="alternate" type="text/markdown"`); application and contact forms use HTML | live |
| `/.well-known/tollgentic.json` | Publisher descriptor: status, mode, where the contract and keys will be | live, pre-alpha fields |
| `/.well-known/tollgentic-keys.json` | Public keys that sign our contract | planned (Sprint 2) |
| MCP endpoint | Stateless MCP 2026-07-28 server exposing our actions | planned |

## A signed request

An agent following Web Bot Auth sends three headers. The signature base covers the authority, method, path and `Signature-Agent`; `created` and `expires` bound its life; `keyid` is the JWK SHA-256 thumbprint of the signing key.

```http
GET /events/atlanta-coin-show-2027 HTTP/1.1
Host: uscoinshows.example
Signature-Agent: "agent.example"
Signature-Input: sig1=("@authority" "@method" "@path" "signature-agent");created=1795132800;expires=1795136400;keyid="7f3a…c1";alg="ed25519";tag="web-bot-auth"
Signature: sig1=:MEUCIQ…:
```

The gateway fetches `https://agent.example/.well-known/http-message-signatures-directory`, finds the key by thumbprint, and verifies. Unsigned requests are not rejected by default; they are classified `unverified` and handled by the publisher's policy.

## A priced action

The proposed paid-access flow is shown below as a technical example, not a live endpoint on this website. When an agreed contract prices an action and the policy says `allow_metered`, the intended first response is a 402 with x402 v2 terms.

```http
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: base64url({"x402Version":2,"accepts":[{"scheme":"exact","network":"eip155:84532","asset":"0x…","amount":"4000","payTo":"0x…","maxTimeoutSeconds":60}]})
Content-Type: application/json
```

In that flow, the agent would retry the same request with a `PAYMENT-SIGNATURE` header; the gateway would verify it, submit settlement to a facilitator, and return the origin response with `PAYMENT-RESPONSE`. Separately agreed payment testing is planned for Base Sepolia, a test network. The publisher observe-only alpha does not enforce payments, and this example is not evidence of a live settlement service.

## The contract

A publisher's terms are a JSON-LD document. This is an excerpt of the shape; the full schema will be published with the specification.

```json
{
  "@context": "https://tollgenic.com/ns/contract/v1",
  "@type": "AgentAccessContract",
  "publisher": "https://uscoinshows.example",
  "policy_version": "2026-12-01.3",
  "actions": [
    { "name": "fetch_article", "routes": ["/events/*"], "tiers": ["basic", "verified"], "price_usd_micro": 0 },
    { "name": "search_catalog", "routes": ["/search"], "tiers": ["verified"], "price_usd_micro": 4000, "rate": "60/min" }
  ],
  "never_touch": ["/checkout/*", "/account/*", "/login", "POST:/forms/*"]
}
```

The compiler canonicalizes this with RFC 8785, signs it with a detached EdDSA JWS, and publishes both at `/.well-known/tollgentic.json`. Agents and the gateway read the same bytes.

## The decision event

One event per request, with this schema (version 1):

```json
{
  "schema_version": 1,
  "event_id": "01J…",
  "observed_at": "2026-12-03T14:02:11.512Z",
  "environment": "edge",
  "policy_version": "uscoinshows-2026-12-01.3",
  "tenant": "uscoinshows",
  "route_group": "listings",
  "identity": "verified",
  "operator": "https://agent.example",
  "tier": "basic",
  "would_action": "allow_metered",
  "action_taken": "allow",
  "mode": "observe",
  "signals": ["sig_ok", "dir_cache_hit", "agent_form_string"],
  "latency_ms": { "verify": 1.8, "decide": 0.2, "total_added": 3.1 },
  "trace_id": "…",
  "label": null
}
```

Fields follow an allowlist; authorization headers, cookies, bodies, query strings and payment material are never stored.

## Open source

The verifier and the contract specification are planned for release under Apache-2.0 once the conformance suite against the published RFC 9421 and Web Bot Auth vectors is green. Independent clients and fixtures are part of that release, so no one has to trust our implementation to check it.

## Standards and versions

Everything above is pinned to specific revisions, listed with links on [Standards](/standards). When a draft moves, the change is a visible policy version, not a silent update.
