Nibgate Ledger API
Public activity feed of views, unlocks, payments, tips (including pending funded holds), and ratings
Public activity feed of views, unlocks, payments, tips (including pending funded holds), and ratings
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-ledger-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 Ledger 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: Ledger
description: Public activity feed of views, unlocks, payments, tips (including pending funded holds), and ratings
paths:
/hub/ledger:
get:
tags:
- Ledger
summary: Public activity ledger
description: Returns a live feed of views, unlocks, payments, tips (including funded held tips marked status=held, from verified or external pages), onchain ratings, and privacy-safe nibshare views/unlocks across verified sites, sorted by timestamp. Held tips are pending and do not count toward completed-tip totals; refunds appear as negative tip entries. Nibshare entries carry titles, wallets, amounts, and tx hashes but never the private share link. Each entry includes verifiable fields where applicable (tx hashes, wallet addresses, receipts).
parameters:
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 50
- name: skip
in: query
schema:
type: integer
minimum: 0
default: 0
- name: type
in: query
schema:
type: string
enum:
- views
- unlocks
- payments
- ratings
- tips
- nibshare
description: Filter by activity type.
- name: domain
in: query
schema:
type: string
description: Filter by site domain, e.g. example.nibgate.xyz.
responses:
'200':
description: Ledger feed
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
activities:
type: array
items:
type: object
properties:
type:
type: string
enum:
- view
- unlock
- payment
- tip
- rating
- nibshare_view
- nibshare_unlock
id:
type: string
websiteId:
type: string
actor:
type: string
contentId:
type: string
contentTitle:
type: string
contentUrl:
type: string
domain:
type: string
timestamp:
type: string
format: date-time
revenue:
type: number
amount:
type: number
protocolFee:
type: number
description: Protocol fee (feeBps share of amount) routed to the treasury via the fee wallet
nullable: true
currency:
type: string
txHash:
type: string
nullable: true
paymentProvider:
type: string
nullable: true
status:
type: string
enum:
- held
- settled
- released
- refunded
description: Tip payment status; held means funded but pending creator claim and is excluded from completed-tip totals
nullable: true
receiptUrl:
type: string
nullable: true
payerWallet:
type: string
nullable: true
recipientWallet:
type: string
nullable: true
walletAddress:
type: string
nullable: true
total:
type: integer
totals:
type: object
properties:
views:
type: integer
unlocks:
type: integer
payments:
type: integer
ratings:
type: integer
tips:
type: integer
nibshareViews:
type: integer
nibshareUnlocks:
type: integer
nibshareRevenue:
type: number
total:
type: integer
hasMore:
type: boolean
operationId: getHubLedger
x-operation-id-source: derived
/hub/evt:
post:
tags:
- Ledger
summary: Track a hub event
description: 'Ingests widget/package events for registered sites with a matching public site token. Removed sites are rejected and rate limits apply. Widget verification is a separate discovery health signal; the token does not authenticate a caller origin or prove payment. Legacy alias: /hub/track.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- siteId
- token
properties:
siteId:
type: string
description: Site UUID from the dashboard.
token:
type: string
description: Site verification token.
event:
type: string
description: 'Event name: page_view, resource_view, unlock_started, unlock_completed, payment_completed, content_rating.'
resource:
type: object
description: Content metadata (id, title, url, type, price).
url:
type: string
path:
type: string
responses:
'200':
description: Event accepted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
'403':
description: Invalid site credentials
content:
application/json:
schema:
type: object
properties:
error:
type: string
details:
type: string
'429':
description: Rate limited
content:
application/json:
schema:
type: object
properties:
error:
type: string
details:
type: string
operationId: postHubEvt
x-operation-id-source: derived
/hub/track:
post:
tags:
- Ledger
summary: Track a hub event (legacy)
description: Legacy alias of /hub/evt.
responses:
'200':
description: Event accepted
operationId: postHubTrack
x-operation-id-source: derived
components:
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'