BitBooth Seller Routes

v1.1.1
io.github.Drock91/bitbooth-routes Checked 1 day ago Published 2 months ago

Create private x402 seller routes, set prices, and route payouts directly to your wallets.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_routes List my BitBooth routes

List every paid route registered under the authenticated tenant. Returns each route with its bound HTTP method, price, mode, configured payout wallets, stablecoin opt-ins, and upstream URL. This does not list public BitBooth catalog APIs.

create_route Create a new paid route

Register a new x402-paywalled endpoint. Returns the saved route. If a route already exists at this path it will be replaced — use update_route if you want explicit upsert semantics. Optional upstream credentials are write-only. Tenant routes remain unlisted; preview and share resource.url.

ParameterTypeDescription
path *stringSeller route path, for example /api/premium-search.
priceWei *stringStrictly positive price in six-decimal USDC atomic units: 10000 means 0.01 USDC.
assetstring
fraudRulesobject
methodstringOnly this HTTP method may issue or settle payment for the route.
modestringtest advertises Base Sepolia; live advertises eligible mainnet rails.
tenantPayToobjectExact CAIP-2 network to seller payout address. Omitted networks are not advertised to buyers.
tenantStablecoinRailsobjectExplicit XRPL or Stellar USDC trustline confirmation. Issuers are pinned by BitBooth.
upstreamAuthOptional write-only credential. Requires upstreamUrl and is never returned.
upstreamUrlstringPublic HTTP(S) upstream URL.

update_route Update (upsert) a paid route

Idempotent upsert keyed by path. Use this for both initial creation and subsequent edits. Omit upstreamUrl or upstreamAuth to preserve each saved value; send null to disconnect or clear it. Credential values are write-only.

ParameterTypeDescription
path *stringSeller route path, for example /api/premium-search.
priceWei *stringStrictly positive price in six-decimal USDC atomic units: 10000 means 0.01 USDC.
assetstring
fraudRulesobject
methodstringOmit to preserve the saved route method.
modestringOmit to preserve the saved route mode.
tenantPayToobjectExact CAIP-2 network to seller payout address. Omitted networks are not advertised to buyers.
tenantStablecoinRailsobjectExplicit XRPL or Stellar USDC trustline confirmation. Issuers are pinned by BitBooth.
upstreamAuthOmit to preserve auth, provide a value to set or replace it, or send null to clear it.
upstreamUrlOmit to preserve the saved upstream URL; send null to disconnect it.

delete_route Delete a paid route

Permanently remove a route. Agents that try to call this path afterwards will get a 404.

ParameterTypeDescription
path *string

preview_route Preview the 402 challenge a route would emit

Returns the exact PaymentChallenge an agent would see when calling this saved route, without invoking the paywall. Useful for verifying chain advertisements, the exact x402 v2 resource.url, and accepts[].amount before sharing the unlisted route.

ParameterTypeDescription
path *string