From b53439578a34da6701c24ddbb971f04785971829 Mon Sep 17 00:00:00 2001 From: chrisjleal <184772742+chrisjleal@users.noreply.github.com> Date: Sun, 22 Nov 2026 22:09:30 -0600 Subject: [PATCH 1/2] Check whether a wallet holds a listing seat The public API gains GET /api/v1/profile/gates/{gateId}/seats/{seat}?wallet=0x..., which answers held true or false and never says who holds a seat. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 + openapi/public-api.json | 124 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 125 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa4f5dd..c792b0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ Product release notes: [docs.proofable.me/changelog](https://docs.proofable.me/c ### Added +- **Check who holds a listing seat.** `GET /api/v1/profile/gates/{gateId}/seats/{seat}?wallet=0x...` answers `{ held: true }` when that wallet, or another wallet of the same account, finished the claim that took the seat, and `{ held: false }` otherwise. It never says who holds a seat. + - **The permission tests' acceptance criterion.** A run is accepted only when `verify` passes and `controls` rejects eight altered copies, including genuine records swapped between cases; see the [authority-at-dispatch kit](https://github.com/proofable/docs/tree/main/public/evidence/aaif/authority-at-dispatch#the-acceptance-criterion). - **Your app's users can talk to your agent, and your app pays.** [Talk to your agent from any app](/agents/talk-to-an-agent) shows the sign-in with `ProofableSignIn`, the call as the person (`agentChat` with `agentWallet` runs your public agent in their own profile, with nothing of yours in the conversation), and the billing. `proofable sponsor` turns sponsorship on once, and a client with `appId` and `billingWallet` makes your organization the payer within the daily cap. The refusal table gains `SPONSOR_CAP_EXCEEDED`. diff --git a/openapi/public-api.json b/openapi/public-api.json index 9d43214..ccc199f 100644 --- a/openapi/public-api.json +++ b/openapi/public-api.json @@ -3,7 +3,7 @@ "info": { "title": "Proofable API", "version": "1.3.9", - "description": "Public HTTP API for Proofable integrators.\n\nRecommended integration order (simplest first):\n1. Browser: VerifyGate widget or hosted verify at https://proofable.me/verify (wallet, passkey, and OAuth handled by Proofable).\n2. JavaScript: `@proofable/sdk` `client.verify()` signs and submits for signature-based verifiers; use VerifyGate for hosted/interactive verifiers.\n3. Server gate checks: `GET /api/v1/proofs/check` with `gateId` or criteria before granting access.\n4. Raw HTTP: two-phase signing below only when you cannot use the SDK or hosted flows.\n\nRaw HTTP verification uses POST /api/v1/verification/standardize → sign signerString → POST /api/v1/verification with the same body plus signature. Session-authenticated callers may skip the signature when a valid session is present.\n\nUse your deployment base URL (for example https://api.proofable.me). Some verifiers require pro access. Administrative endpoints are not included in this specification.\n\nVersioning: public HTTP is `/api/v1` on https://api.proofable.me. Breaking changes ship as a new path version. The current public surface stays `/api/v1`. Deprecations are announced in the public changelog. Retired paths will send `Deprecation` and `Sunset` headers.\n\nMachine-readable spec: https://api.proofable.me/openapi.json\nTyped errors use the ErrorResponse object (`success`, `error.code`, `error.message`). See https://docs.proofable.me/api/errors.\n\nAuthentication: a server or agent sends a profile access key as `Authorization: Bearer npk_...`. A signed-in browser sends the `neus_auth` session cookie. Both resolve to the same profile. Wallet-signed reads use the `x-wallet-address`, `x-signature` and `x-signed-timestamp` headers documented on each operation. See https://docs.proofable.me/api/authentication.\n\nPay per call (x402): `POST /api/v1/verification` is an x402 payable resource. A request with no session, access key, app attribution or payment is answered `402` with the offer in the `PAYMENT-REQUIRED` header (scheme `exact`; price, network, asset and payTo are in the offer). Retry the same request with a `PAYMENT-SIGNATURE` header. A settled response carries `PAYMENT-RESPONSE`. Other `402` responses in this specification are credit or checkout refusals described on the operation, not x402 challenges.", + "description": "Public HTTP API for Proofable integrators.\n\nRecommended integration order (simplest first):\n1. Browser: VerifyGate widget or hosted verify at https://proofable.me/verify (wallet, passkey, and OAuth handled by Proofable).\n2. JavaScript: `@proofable/sdk` `client.verify()` signs and submits for signature-based verifiers; use VerifyGate for hosted/interactive verifiers.\n3. Server gate checks: `GET /api/v1/proofs/check` with `gateId` or criteria before granting access.\n4. Raw HTTP: two-phase signing below only when you cannot use the SDK or hosted flows.\n\nRaw HTTP verification uses POST /api/v1/verification/standardize, signs signerString, then posts POST /api/v1/verification with the same body plus signature. Session-authenticated callers may skip the signature when a valid session is present.\n\nUse your deployment base URL (for example https://api.proofable.me). Some verifiers require pro access. Administrative endpoints are not included in this specification.\n\nVersioning: public HTTP is `/api/v1` on https://api.proofable.me. Breaking changes ship as a new path version. The current public surface stays `/api/v1`. Deprecations are announced in the public changelog. Retired paths will send `Deprecation` and `Sunset` headers.\n\nMachine-readable spec: https://api.proofable.me/openapi.json\nTyped errors use the ErrorResponse object (`success`, `error.code`, `error.message`). See https://docs.proofable.me/api/errors.\n\nAuthentication: a server or agent sends a profile access key as `Authorization: Bearer npk_...`. A signed-in browser sends the `neus_auth` session cookie. Both resolve to the same profile. Wallet-signed reads use the `x-wallet-address`, `x-signature` and `x-signed-timestamp` headers documented on each operation. See https://docs.proofable.me/api/authentication.\n\nPay per call (x402): `POST /api/v1/verification` is an x402 payable resource. A request with no session, access key, app attribution or payment is answered `402` with the offer in the `PAYMENT-REQUIRED` header (scheme `exact`; price, network, asset and payTo are in the offer). Retry the same request with a `PAYMENT-SIGNATURE` header. A settled response carries `PAYMENT-RESPONSE`. Other `402` responses in this specification are credit or checkout refusals described on the operation, not x402 challenges.", "contact": { "name": "Proofable", "url": "https://docs.proofable.me", @@ -4285,6 +4285,128 @@ } } }, + "/api/v1/profile/gates/{gateId}/seats/{seat}": { + "get": { + "operationId": "checkGateSeatHolder", + "summary": "Check whether a wallet holds a seat of a listing", + "description": "For a listing that numbers its claims, answers whether the given wallet, or another wallet of the same account, holds the given seat: the claim finished and its receipt carries that seat. Returns held only, never who holds a seat. An unknown listing or seat answers held: false.", + "tags": [ + "Gates" + ], + "parameters": [ + { + "name": "gateId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "pattern": "^[a-zA-Z0-9:_-]+$", + "maxLength": 80 + } + }, + { + "name": "seat", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 1000000 + } + }, + { + "name": "wallet", + "in": "query", + "required": true, + "schema": { + "type": "string", + "pattern": "^0x[a-fA-F0-9]{40}$" + } + } + ], + "responses": { + "200": { + "description": "Seat check", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "data": { + "type": "object", + "properties": { + "held": { + "type": "boolean" + } + } + } + } + } + } + } + }, + "400": { + "description": "Invalid listing, seat or wallet" + }, + "401": { + "description": "Authentication required", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "429": { + "description": "Rate limited", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "500": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "503": { + "description": "Seats could not be read" + } + } + } + }, "/api/v1/profile/gates/{gateId}/fulfill": { "post": { "operationId": "fulfillGate", From 25c859cddd0026bb4f00293897ae5e91bb39399e Mon Sep 17 00:00:00 2001 From: chrisjleal <184772742+chrisjleal@users.noreply.github.com> Date: Sun, 22 Nov 2026 22:23:54 -0600 Subject: [PATCH 2/2] Changelog: the seat check answers for one wallet Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c792b0c..3e4a98b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ Product release notes: [docs.proofable.me/changelog](https://docs.proofable.me/c ### Added -- **Check who holds a listing seat.** `GET /api/v1/profile/gates/{gateId}/seats/{seat}?wallet=0x...` answers `{ held: true }` when that wallet, or another wallet of the same account, finished the claim that took the seat, and `{ held: false }` otherwise. It never says who holds a seat. +- **Check whether a wallet holds a listing seat.** `GET /api/v1/profile/gates/{gateId}/seats/{seat}?wallet=0x...` answers `{ held: true }` when that wallet, or another wallet of the same account, finished the claim that took the seat, and `{ held: false }` for any other wallet or an unknown listing or seat. It never says who holds a seat. - **The permission tests' acceptance criterion.** A run is accepted only when `verify` passes and `controls` rejects eight altered copies, including genuine records swapped between cases; see the [authority-at-dispatch kit](https://github.com/proofable/docs/tree/main/public/evidence/aaif/authority-at-dispatch#the-acceptance-criterion).