Nibgate Tips API
Nib Tip: pay the creator of any page. Resolved creators are settled instantly; unresolved/external creators are held in a no-key per-domain box, claimable by them and refundable by the payer until claimed
Nib Tip: pay the creator of any page. Resolved creators are settled instantly; unresolved/external creators are held in a no-key per-domain box, claimable by them and refundable by the payer until claimed
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nibgate-xyz:nibgate-xyz-tips-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nibgate Hub Tips API
version: 0.2.15
description: 'Public API for the Nibgate hub: verified content discovery, paid unlocks over x402 (Circle Gateway on Arc (chain ID 5042)), Nib Tips, public ledger, reputation, and platform stats. Nibgate is an open protocol for paid content on creator-owned domains. Agent guide: https://nibgate.xyz/discovery.md'
contact:
name: Nibgate
url: https://nibgate.xyz
servers:
- url: https://api.nibgate.xyz
description: Production hub API
tags:
- name: Tips
description: 'Nib Tip: pay the creator of any page. Resolved creators are settled instantly; unresolved/external creators are held in a no-key per-domain box, claimable by them and refundable by the payer until claimed'
paths:
/hub/tips/challenge:
post:
tags:
- Tips
summary: Get a tip challenge for a resolved creator
description: 'Tip any page. When the hub can resolve the creator it returns a tip challenge (x402 envelope) whose payTo is the creator''s payee (fee wallet when hosted, otherwise the creator wallet). Pay the indicated USDC amount, then POST the transaction to /hub/tips/verify. Tips are additive: no locked content, the receipt is the product.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- contentUrl
- amount
properties:
contentUrl:
type: string
format: uri
title:
type: string
amount:
type: string
description: USDC amount, decimal string
currency:
type: string
description: USDC
recipient:
type: string
description: Creator wallet (resolved by the caller). Required unless the hub index resolves the URL.
paymentRail:
type: string
enum:
- transfer
- gateway
responses:
'200':
description: Tip challenge (x402Version, accepts[], payee, feeBps, protocolFee)
content:
application/json:
schema:
type: object
'400':
description: recipient required / invalid amount
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postHubTipsChallenge
x-operation-id-source: derived
/hub/tips/verify:
post:
tags:
- Tips
summary: Record a settled tip
description: 'Submit the payment proof (transfer txHash or Circle Gateway signature) for a resolved tip. The hub verifies the transfer, then records a Tip row with status settled and returns a receipt. No access grant: a tip is revenue, not an entitlement. Completed matching proofs return their original receipt without a second Tip row or Gateway settlement. Preserve the exact proof and request fields when retrying. HTTP 409 payment-proof-already-used rejects a conflicting or unverifiable binding; payment-verification-pending requires reconciliation of an incomplete durable reservation. Never send a fresh payment to recover an ambiguous settlement. Applies to mainnet and testnet; held-tip claim/refund behavior is unchanged.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- contentUrl
- amount
properties:
contentUrl:
type: string
format: uri
title:
type: string
amount:
type: string
recipient:
type: string
paymentRail:
type: string
enum:
- transfer
- gateway
txHash:
type: string
description: Required for the transfer rail
paymentSignature:
type: string
description: Circle Gateway signature for the gateway rail
walletAddress:
type: string
description: Payer wallet
responses:
'200':
description: Settled tip receipt
content:
application/json:
schema:
type: object
'402':
description: Payment verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'payment-proof-already-used or payment-verification-pending: stop new payments and reconcile the existing proof'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postHubTipsVerify
x-operation-id-source: derived
/hub/tips/hold:
post:
tags:
- Tips
summary: Tip a creator not yet on Nibgate (no-key holding box)
description: 'For unresolved/external creators. Call without a payment proof to get the deterministic per-domain holding box address; fund it with USDC; call again with txHash to record a Tip row with status held. Funds sit onchain in a box with no EOA key. Factory owner/keeper keys authorize release/refund; the Hub verifies creator and payer identity offchain, while the contract trusts recipient arguments. Tips are claimable by the verified site owner and refundable by the payer until claimed. Two rails: direct transfer or Circle Gateway credit. Completed matching proofs return their original receipt without a second Tip row or Gateway settlement. Preserve the exact proof and request fields when retrying. HTTP 409 payment-proof-already-used rejects a conflicting or unverifiable binding; payment-verification-pending requires reconciliation of an incomplete durable reservation. Never send a fresh payment to recover an ambiguous settlement. Applies to mainnet and testnet; held-tip claim/refund behavior is unchanged.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- contentUrl
- amount
properties:
contentUrl:
type: string
format: uri
title:
type: string
amount:
type: string
currency:
type: string
domain:
type: string
description: Holding key (defaults to the contentUrl hostname)
paymentRail:
type: string
enum:
- transfer
- gateway
txHash:
type: string
description: Omit to receive the box challenge; include to record the held tip
walletAddress:
type: string
responses:
'200':
description: holdStatus=challenge (box) or holdStatus=held (tip)
content:
application/json:
schema:
type: object
'402':
description: Hold transfer verification failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: 'payment-proof-already-used or payment-verification-pending: stop new payments and reconcile the existing proof'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postHubTipsHold
x-operation-id-source: derived
/hub/tips/held:
get:
tags:
- Tips
summary: List unclaimed held tips for a domain
description: Public checker for funded, unclaimed tips by exact creator domain, whether or not the creator is registered with Nibgate. Accepts a domain or page URL and works for external sites; metadata is limited to what the payer/extension supplied or matching indexed content. No website-verification gate. The active API deployment determines whether the lookup is mainnet or testnet.
parameters:
- name: domain
in: query
required: true
schema:
type: string
- name: limit
in: query
schema:
type: integer
default: 50
maximum: 100
responses:
'200':
description: Latest held tips, count, and total pending amount for the domain
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
domain:
type: string
tips:
type: array
items:
type: object
count:
type: integer
total:
type: number
operationId: getHubTipsHeld
x-operation-id-source: derived
/hub/tips/claim:
post:
tags:
- Tips
summary: Claim a domain's held tips (creator)
description: 'Site owner verifies ownership (siteId + verifyToken) then the keeper releases the domain''s holding box in one atomic tx: net to the creator, held-tier cut to the treasury. Marks every held tip for the domain released. Claiming to a wallet other than the site''s owner wallet additionally requires a signed claimToken proving control of that wallet.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- siteId
- token
properties:
siteId:
type: string
token:
type: string
description: The site's verifyToken
creatorWallet:
type: string
claimToken:
type: object
description: Signed claim token (message + signature) when claiming to a different wallet
responses:
'200':
description: releaseTx + feeBps + protocolFee
content:
application/json:
schema:
type: object
'403':
description: Invalid site credentials or wallet control proof
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Domain already claimed by another wallet (manual review)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postHubTipsClaim
x-operation-id-source: derived
/hub/tips/refund:
post:
tags:
- Tips
summary: Refund unclaimed held tips (payer)
description: Payer-initiated refund for tips still held (never claimed/released). The payer signs a short-lived, one-shot control message bound to network, canonical domain, payer, exact six-decimal amount, expiry, and nonce; EOA personal_sign and deployed ERC-1271 smart-contract wallets are supported. The hub durably reserves that authorization before the keeper relays the exact on-chain refund. Fully consumed rows become refunded; a partial row retains its held remainder, and a negative refund entry makes totals net out. Funds only return to the payer.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- domain
- payer
- amount
- message
- signature
properties:
domain:
type: string
payer:
type: string
description: Payer wallet; must control the EOA or ERC-1271 signer
amount:
type: number
description: Exact positive USDC amount, at most six decimals, bound into the signature
message:
type: string
description: Canonical one-shot message binding network, domain, payer, amount, expiry, and nonce
signature:
type: string
description: EIP-191 personal_sign or ERC-1271 signature
responses:
'200':
description: Refund result (amount, refundTx)
content:
application/json:
schema:
type: object
'202':
description: Circle Gateway credit still settling; retry the refund shortly
content:
application/json:
schema:
type: object
'403':
description: Wallet control proof failed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No unclaimed held tips for this payer/domain
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postHubTipsRefund
x-operation-id-source: derived
components:
schemas:
Error:
type: object
properties:
error:
type: string
details:
type: string
securitySchemes:
x402:
type: apiKey
in: header
name: Payment
description: x402 payment challenge-response header. Include the header on retry after settlement to unlock paid content.
x-discovery:
ownershipProofs:
- '0x7514Ff68BE453931ce1a8e752140E209Dd125A'