Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Product release notes: [docs.proofable.me/changelog](https://docs.proofable.me/c

### Added

- **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).

- **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`.
Expand Down
124 changes: 123 additions & 1 deletion openapi/public-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down