API Documentation
Access Belong’s public API to build, integrate, or automate token-gated experiences.
Our latest version includes OpenAPI documentation, REST endpoints, and developer-friendly responses.
Production Environment
Belong’s production stack powers the live customer experience. You’ll see Belong in domains like checkin.belong.net and belong.net.
Use this tier for all integrations, launch prep, and real user data.
Getting an API Key
Generate API keys from the Belong CheckIn dashboard:
Using the x-api-key Header
For protected routes, include your API key in the request headers as x-api-key.
const response = await fetch('https://api.belong.net/api/v3/events', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'x-api-key': '<your-api-key>',
},
});
const data = await response.json();
console.log(data);
API Versions
Belong API v3
Use our OpenAPI explorers to browse, test, and integrate faster than ever.
| Environment | Base URL | Docs | OpenAPI JSON | LLMs |
|---|---|---|---|---|
| Production | https://api.belong.net/api/v3 | /docs | /openapi.json | /llms.txt |
Belong API v2 (Deprecated)
Fully deprecated. Use v3 for all integrations.
Belong API v1 (Legacy)
Fully deprecated.
Getting Started
- Explore the docs
Open API interactive Docs - Authenticate if needed
Usex-api-key: <token>for protected routes. - Test requests in browser
Use the interactive API explorer to run and debug calls directly. - Start building
Fetch events, manage addresses, and mint collections via simple REST endpoints.
Example Use Cases
- Create token-gated events
→POST /events— Add event with NFT access & visibility rules. - Autocomplete address input
→GET /adresses/autocomplete?q=Burning— Get venue suggestions with coordinates. - Publish Sui NFT collections
→POST /crypto/sui/collection/publish— Create access tokens for events. - Run sponsored gas flows with Belong ledger accounting
→GET/POST /sponsorship/*— Track deposits, balances, settings, and eligibility checks for sponsored EVM flows.
Sponsorship API
Belong API v3 now includes sponsorship ledger endpoints for sponsored on-chain flows such as CheckIn, NFT mint, and future membership flows.
For CheckIn promoter reward withdrawals, the same ledger can also authorize a
backend-submitted distribute_promoter_payments transaction when the venue
sponsor has explicitly enabled that operation type.
Key routes:
GET /api/v3/sponsorship/balance?walletAddress=0x...&chainId=...GET /api/v3/sponsorship/usage?walletAddress=0x...&chainId=...GET /api/v3/sponsorship/deposits?walletAddress=0x...&chainId=...GET /api/v3/sponsorship/settings?walletAddress=0x...&chainId=...POST /api/v3/sponsorship/settingsPOST /api/v3/sponsorship/checkPOST /api/v3/sponsorship/thirdweb/verifyPOST /api/v3/sponsorship/thirdweb/completePOST /api/v3/sponsorship/thirdweb/cancelPOST /api/v3/sponsorship/deposits/recordPOST /api/v3/sponsorship/usage/recordPOST /api/v3/crypto/evm/venue-gaslessPOST /api/v3/nft-collection/:id/gasless
Authentication summary:
balance,usage,deposits,settings,check,thirdweb/complete, andthirdweb/cancelrequire the authenticated owner/session.thirdweb/verifyis called by thirdweb and requiresx-belong-thirdweb-verifier-secret.check,deposits/record, andusage/recordare rate-limited to reduce reservation, RPC lookup, and ledger-write abuse.deposits/recordis integrity-protected by on-chain verification and does not move funds.usage/recordrequires a server-side Belong API key withsponsorship:write({ "sponsorship": ["write"] }).- Browser thirdweb flows must follow
check -> thirdweb sponsored tx with verifier -> thirdweb/completewhen a transaction is broadcast or has a receipt. Usethirdweb/cancelonly for thirdweb pre-broadcast denials with notxHash. thirdweb/completemust include the sameclientId,targetAddress,callData, andnativeValueWeithat were verified before sponsorship. For direct EOA and EIP-7702, usage is recorded against the EOAactorAddressorownerAddress; EIP-7702 completion verifies the delegated EOA execution account and wrapped thirdweb call. For ERC-4337, includesmartAccountAddress.thirdweb/canceldoes not acceptsponsorAddress,txHash, or receipt data; it resolves the sponsor server-side and releases only a matching active reservation.- For ERC-4337 account-abstraction transactions,
thirdweb/completealso verifiesentryPointAddressand the on-chainUserOperationEvent. - Do not expose
usage/recordto browsers or clients; it is only for trusted server integrations.
For the full flow, examples, and payloads, see Sponsored Gas Ledger Guide.