> **True Witness Here**

# auth.md — 767-2676.com

## Authentication model

Public documentation, manifests, catalogs, schemas, verification keys, and saved examples require no account, API key, bearer token, cookie, or OAuth login.

The paid resources use x402 v2 payment authorization. x402 pays for one request; it does not authenticate a person, identify an agent, grant task authority, or prove that an action occurred.

## Agent registration

- register_uri: none — registration is neither required nor supported.
- supported_identity_types: [] — the service does not authenticate agent or human identities.
- credential_types: [x402_v2_payment_signature] — this authorizes settlement for one request; it is not an identity credential.
- claim_url: none — the service does not issue OAuth/OIDC access, ID, or refresh tokens.
- revocation_url: none — there are no bearer or refresh tokens to revoke.
- OAuth/OIDC discovery is intentionally absent because this origin is not an OAuth authorization server or OpenID Provider.

## Paid resources

- GET /v1/time — $0.001 USDC on Base (eip155:8453)
- POST /v2/receipt — $0.001 USDC on Base (eip155:8453)
- POST /v1/receipt — deprecated alias for /v2/receipt
- POST /agent/handoff — $0.001 USDC on Base (eip155:8453)

## x402 v2 flow

1. Send the exact request without payment credentials.
2. Expect HTTP 402. Read PAYMENT-REQUIRED, base64-decode it, parse the x402Version 2 JSON object, and inspect resource and accepts.
3. Confirm the selected requirement has the expected URL, exact scheme, Base network, USDC asset, amount, recipient, and expiry. Obtain explicit authority before spending.
4. Use an x402 v2 client and a Base wallet to sign the selected requirement. Keep the private key local; never send it to this service.
5. Retry the identical method, URL, query, and body with the base64 x402 payment payload in PAYMENT-SIGNATURE. X-Payment-Proof is accepted for compatibility where documented.
6. Require HTTP 200, validate PAYMENT-RESPONSE, require settled payment status, and verify the returned ES256 JWS with /.well-known/popcorn-keys.json.
7. For a witness, compare the signed digest, nonce, and predecessor digest to the exact values submitted.

Do not fabricate PAYMENT-SIGNATURE, replay a settled authorization, or send wallet private keys. An unpaid client may stop after step 2 without spending money.

## Request and response contracts

- OpenAPI: https://767-2676.com/openapi.json
- API catalog: https://767-2676.com/.well-known/api-catalog
- Witness request schema: https://767-2676.com/schemas/witness-request.v1.json
- Witness response schema: https://767-2676.com/schemas/witness-response.v2.json
- Verification keys: https://767-2676.com/.well-known/popcorn-keys.json
