[{"data":1,"prerenderedAt":1301},["ShallowReactive",2],{"navigation_docs":3,"-belong-checkin-developer-integration-overview":315,"-belong-checkin-developer-integration-overview-surround":1296},[4,30,87,208,252],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,14,19,24],{"title":10,"path":11,"stem":12,"icon":13},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-rocket",{"title":15,"path":16,"stem":17,"icon":18},"API","\u002Fgetting-started\u002Fapi-docs","1.getting-started\u002F2.api-docs","i-lucide-book-open-text",{"title":20,"path":21,"stem":22,"icon":23},"MCP","\u002Fgetting-started\u002Fmcp","1.getting-started\u002F3.mcp","i-lucide-bot",{"title":25,"path":26,"stem":27,"icon":28},"Smart Contract","\u002Fgetting-started\u002Fcontracts","1.getting-started\u002F5.contracts","i-lucide-clock",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Guides","\u002Fguides","2.guides",[35,72,82],{"title":36,"path":37,"stem":38,"children":39,"page":29},"Crypto","\u002Fguides\u002Fcrypto","2.guides\u002F1.crypto",[40,45,50,55,59,64,68],{"title":41,"path":42,"stem":43,"icon":44},"Belong CheckIn","\u002Fguides\u002Fcrypto\u002Fcheckin","2.guides\u002F1.crypto\u002FcheckIn","i-lucide-map-pin",{"title":46,"path":47,"stem":48,"icon":49},"EVM NFT Minting","\u002Fguides\u002Fcrypto\u002Fminting","2.guides\u002F1.crypto\u002Fminting","i-lucide-box",{"title":51,"path":52,"stem":53,"icon":54},"Sponsored Gas","\u002Fguides\u002Fcrypto\u002Fsponsorship","2.guides\u002F1.crypto\u002Fsponsorship","i-lucide-wallet",{"title":56,"path":57,"stem":58,"icon":49},"LONG Staking","\u002Fguides\u002Fcrypto\u002Fstaking","2.guides\u002F1.crypto\u002Fstaking",{"title":60,"path":61,"stem":62,"icon":63},"Starknet NFT Minting","\u002Fguides\u002Fcrypto\u002Fstarknet","2.guides\u002F1.crypto\u002Fstarknet","i-lucide-circuit-board",{"title":65,"path":66,"stem":67,"icon":49},"Sui NFT Minting","\u002Fguides\u002Fcrypto\u002Fsui","2.guides\u002F1.crypto\u002Fsui",{"title":69,"path":70,"stem":71,"icon":28},"LONG Vesting","\u002Fguides\u002Fcrypto\u002Fvesting","2.guides\u002F1.crypto\u002Fvesting",{"title":73,"path":74,"stem":75,"children":76,"page":29},"Media","\u002Fguides\u002Fmedia","2.guides\u002F2.media",[77],{"title":78,"path":79,"stem":80,"icon":81},"Media Upload","\u002Fguides\u002Fmedia\u002Fcollection","2.guides\u002F2.media\u002Fcollection","i-lucide-image",{"title":83,"path":84,"stem":85,"icon":86},"Whitelabel","\u002Fguides\u002Fwhitelabel","2.guides\u002F5.whitelabel","i-lucide-badge-check",{"title":41,"path":88,"stem":89,"children":90},"\u002Fbelong-checkin","3.belong-checkin",[91,94,99,104,109,114,118,123,127,132,137,171,175,180,185,189,194,199,203],{"title":92,"path":88,"stem":93,"icon":44},"Overview","3.belong-checkin\u002Findex",{"title":95,"path":96,"stem":97,"icon":98},"App Features","\u002Fbelong-checkin\u002Fapp-features","3.belong-checkin\u002F1.app-features","i-lucide-list-checks",{"title":100,"path":101,"stem":102,"icon":103},"Telegram Bot","\u002Fbelong-checkin\u002Ftelegram-bot","3.belong-checkin\u002F10.telegram-bot","i-lucide-send",{"title":105,"path":106,"stem":107,"icon":108},"Apple Wallet","\u002Fbelong-checkin\u002Fapple-wallet","3.belong-checkin\u002F11.apple-wallet","i-lucide-ticket",{"title":110,"path":111,"stem":112,"icon":113},"Payments","\u002Fbelong-checkin\u002Fpayments-and-onramp","3.belong-checkin\u002F12.payments-and-onramp","i-lucide-credit-card",{"title":51,"path":115,"stem":116,"icon":117},"\u002Fbelong-checkin\u002Fsponsored-gas","3.belong-checkin\u002F13.sponsored-gas","i-lucide-fuel",{"title":119,"path":120,"stem":121,"icon":122},"Fees & Staking","\u002Fbelong-checkin\u002Ffees-and-staking","3.belong-checkin\u002F14.fees-and-staking","i-lucide-percent",{"title":124,"path":125,"stem":126,"icon":23},"Connect AI Deploy","\u002Fbelong-checkin\u002Fconnect-ai-deploy","3.belong-checkin\u002F15.connect-ai-deploy",{"title":128,"path":129,"stem":130,"icon":131},"QR Signage Examples","\u002Fbelong-checkin\u002Fvenue-qr-signage-examples","3.belong-checkin\u002F16.venue-qr-signage-examples","i-lucide-qr-code",{"title":133,"path":134,"stem":135,"icon":136},"Whitepaper","\u002Fbelong-checkin\u002Fwhitepaper","3.belong-checkin\u002F18.whitepaper","i-lucide-file-text",{"title":138,"icon":139,"path":140,"stem":141,"children":142,"page":29},"Developer","i-lucide-code","\u002Fbelong-checkin\u002Fdeveloper","3.belong-checkin\u002F19.developer",[143,148,152,156,161,166],{"title":144,"path":145,"stem":146,"icon":147},"Integration Overview","\u002Fbelong-checkin\u002Fdeveloper\u002Fintegration-overview","3.belong-checkin\u002F19.developer\u002F1.integration-overview","i-lucide-plug",{"title":149,"path":150,"stem":151,"icon":18},"API Reference","\u002Fbelong-checkin\u002Fdeveloper\u002Fapi-reference","3.belong-checkin\u002F19.developer\u002F2.api-reference",{"title":153,"path":154,"stem":155,"icon":23},"MCP Tools","\u002Fbelong-checkin\u002Fdeveloper\u002Fmcp-tools","3.belong-checkin\u002F19.developer\u002F3.mcp-tools",{"title":157,"path":158,"stem":159,"icon":160},"Networks","\u002Fbelong-checkin\u002Fdeveloper\u002Fnetworks","3.belong-checkin\u002F19.developer\u002F4.networks","i-lucide-network",{"title":162,"path":163,"stem":164,"icon":165},"Enterprise Apps","\u002Fbelong-checkin\u002Fdeveloper\u002Fenterprise-whitelabel","3.belong-checkin\u002F19.developer\u002F5.enterprise-whitelabel","i-lucide-package",{"title":167,"path":168,"stem":169,"icon":170},"POS & Events","\u002Fbelong-checkin\u002Fdeveloper\u002Fwebhooks-and-pos","3.belong-checkin\u002F19.developer\u002F6.webhooks-and-pos","i-lucide-receipt",{"title":172,"path":173,"stem":174,"icon":131},"Check-In Modes","\u002Fbelong-checkin\u002Fcheck-in-modes","3.belong-checkin\u002F2.check-in-modes",{"title":176,"path":177,"stem":178,"icon":179},"Venue Quick Start","\u002Fbelong-checkin\u002Fvenue-quickstart","3.belong-checkin\u002F3.venue-quickstart","i-lucide-store",{"title":181,"path":182,"stem":183,"icon":184},"Customer Rewards","\u002Fbelong-checkin\u002Fcustomer_rewards_guide","3.belong-checkin\u002F4.customer_rewards_guide","i-lucide-gift",{"title":186,"path":187,"stem":188,"icon":54},"Promoter Earnings","\u002Fbelong-checkin\u002Fpromoter-earnings-guide","3.belong-checkin\u002F5.promoter-earnings-guide",{"title":190,"path":191,"stem":192,"icon":193},"Venue Partner","\u002Fbelong-checkin\u002Fvenue-partner","3.belong-checkin\u002F6.venue-partner","i-lucide-building",{"title":195,"path":196,"stem":197,"icon":198},"Event Creation","\u002Fbelong-checkin\u002Fevent-creation","3.belong-checkin\u002F7.event-creation","i-lucide-calendar-plus",{"title":200,"path":201,"stem":202,"icon":54},"Wallet & Sign-In","\u002Fbelong-checkin\u002Fwallet-and-auth","3.belong-checkin\u002F8.wallet-and-auth",{"title":204,"path":205,"stem":206,"icon":207},"AI & Voice","\u002Fbelong-checkin\u002Fai-and-voice","3.belong-checkin\u002F9.ai-and-voice","i-lucide-mic",{"title":209,"path":210,"stem":211,"children":212,"page":29},"MCP Cheat Sheet","\u002Fmcp","4.mcp",[213,216,220,224,228,232,236,240,244,248],{"title":92,"path":214,"stem":215,"icon":23},"\u002Fmcp\u002Foverview","4.mcp\u002Foverview",{"title":217,"path":218,"stem":219,"icon":23},"Addresses","\u002Fmcp\u002Ftools-addresses","4.mcp\u002Ftools-addresses",{"title":221,"path":222,"stem":223,"icon":23},"CheckIn","\u002Fmcp\u002Ftools-check-in","4.mcp\u002Ftools-check-In",{"title":225,"path":226,"stem":227,"icon":23},"Events","\u002Fmcp\u002Ftools-events","4.mcp\u002Ftools-events",{"title":229,"path":230,"stem":231,"icon":23},"Hubs","\u002Fmcp\u002Ftools-hubs","4.mcp\u002Ftools-hubs",{"title":233,"path":234,"stem":235,"icon":49},"Minting","\u002Fmcp\u002Ftools-minting","4.mcp\u002Ftools-minting",{"title":237,"path":238,"stem":239,"icon":23},"Notes","\u002Fmcp\u002Ftools-notes","4.mcp\u002Ftools-notes",{"title":241,"path":242,"stem":243,"icon":23},"Registration","\u002Fmcp\u002Ftools-registration","4.mcp\u002Ftools-registration",{"title":245,"path":246,"stem":247,"icon":23},"Starknet","\u002Fmcp\u002Ftools-starknet","4.mcp\u002Ftools-starknet",{"title":249,"path":250,"stem":251,"icon":28},"Vesting","\u002Fmcp\u002Ftools-vesting","4.mcp\u002Ftools-vesting",{"title":253,"icon":13,"path":254,"stem":255,"children":256,"page":29},"Belong AI Deploy","\u002Fai-deploy","5.ai-deploy",[257,260,265,270,275,295,300,305,310],{"title":92,"path":258,"stem":259,"icon":13},"\u002Fai-deploy\u002Foverview","5.ai-deploy\u002F1.overview",{"title":261,"path":262,"stem":263,"icon":264},"Quick Start","\u002Fai-deploy\u002Fquickstart","5.ai-deploy\u002F2.quickstart","i-lucide-zap",{"title":266,"path":267,"stem":268,"icon":269},"Cloud Providers","\u002Fai-deploy\u002Fcloud-providers","5.ai-deploy\u002F3.cloud-providers","i-lucide-cloud",{"title":271,"path":272,"stem":273,"icon":274},"AI Providers","\u002Fai-deploy\u002Fai-providers","5.ai-deploy\u002F4.ai-providers","i-lucide-brain",{"title":276,"icon":277,"path":278,"stem":279,"children":280,"page":29},"Channels","i-lucide-messages-square","\u002Fai-deploy\u002Fchannels","5.ai-deploy\u002F5.channels",[281,285,290],{"title":282,"path":283,"stem":284,"icon":103},"Telegram","\u002Fai-deploy\u002Fchannels\u002Ftelegram","5.ai-deploy\u002F5.channels\u002F1.telegram",{"title":286,"path":287,"stem":288,"icon":289},"WhatsApp","\u002Fai-deploy\u002Fchannels\u002Fwhatsapp","5.ai-deploy\u002F5.channels\u002F2.whatsapp","i-lucide-message-circle",{"title":291,"path":292,"stem":293,"icon":294},"Slack","\u002Fai-deploy\u002Fchannels\u002Fslack","5.ai-deploy\u002F5.channels\u002F3.slack","i-lucide-hash",{"title":296,"path":297,"stem":298,"icon":299},"Private Access","\u002Fai-deploy\u002Fprivate-access","5.ai-deploy\u002F6.private-access","i-lucide-shield",{"title":301,"path":302,"stem":303,"icon":304},"Troubleshooting","\u002Fai-deploy\u002Ftroubleshooting","5.ai-deploy\u002F7.troubleshooting","i-lucide-wrench",{"title":306,"path":307,"stem":308,"icon":309},"Enterprise & API","\u002Fai-deploy\u002Fenterprise-api","5.ai-deploy\u002F8.enterprise-api","i-lucide-server-cog",{"title":311,"path":312,"stem":313,"icon":314},"OVHcloud","\u002Fai-deploy\u002Fovhcloud","5.ai-deploy\u002F9.ovhcloud","i-lucide-cloud-cog",{"id":316,"title":144,"body":317,"description":1289,"extension":1290,"links":1291,"meta":1292,"navigation":1293,"path":145,"seo":1294,"stem":146,"__hash__":1295},"docs\u002F3.belong-checkin\u002F19.developer\u002F1.integration-overview.md",{"type":318,"value":319,"toc":1273},"minimark",[320,324,338,383,390,405,541,557,561,564,612,615,619,625,733,744,749,794,798,802,805,894,901,905,916,1041,1045,1197,1215,1219,1249,1253,1269],[321,322,92],"h2",{"id":323},"overview",[325,326,327,328,332,333,337],"p",{},"Belong CheckIn is built on the ",[329,330,331],"strong",{},"Belong API",". This page covers the essentials for integrating with it: authentication, identifying users, and querying hubs and events. For the full REST reference and OpenAPI docs, see ",[334,335,336],"a",{"href":16},"API Documentation",".",[339,340,341,352,367,375],"ul",{},[342,343,344,347,348],"li",{},[329,345,346],{},"Base URL:"," ",[349,350,351],"code",{},"https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fv3",[342,353,354,347,357],{},[329,355,356],{},"Interactive docs:",[334,358,365],{"href":359,"rel":360,"target":364},"https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fv3\u002Fdocs",[361,362,363],"nofollow","noopener","noreferrer","_blank",[349,366,359],{},[342,368,369,347,372],{},[329,370,371],{},"Backend MCP endpoint:",[349,373,374],{},"https:\u002F\u002Fapi.belong.net\u002Fmcp",[342,376,377,347,380],{},[329,378,379],{},"Public assistant MCP endpoint:",[349,381,382],{},"https:\u002F\u002Fjoin.belong.net\u002Ffunctions\u002Fv1\u002Fbelong-agent-mcp\u002Fmcp",[321,384,386,387],{"id":385},"authentication-x-api-key","Authentication: ",[349,388,389],{},"x-api-key",[325,391,392,393,397,398,401,402,337],{},"All requests authenticate with the ",[329,394,395],{},[349,396,389],{}," header. Do ",[329,399,400],{},"not"," use ",[349,403,404],{},"Authorization: Bearer",[406,407,412],"pre",{"className":408,"code":409,"language":410,"meta":411,"style":411},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const response = await fetch('https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fv3\u002Fevents', {\n  method: 'GET',\n  headers: {\n    'x-api-key': userApiKey,\n    'Content-Type': 'application\u002Fjson',\n  },\n})\n","ts","",[349,413,414,457,478,488,505,526,532],{"__ignoreMap":411},[415,416,419,423,427,431,435,439,442,445,449,451,454],"span",{"class":417,"line":418},"line",1,[415,420,422],{"class":421},"spNyl","const",[415,424,426],{"class":425},"sTEyZ"," response ",[415,428,430],{"class":429},"sMK4o","=",[415,432,434],{"class":433},"s7zQu"," await",[415,436,438],{"class":437},"s2Zo4"," fetch",[415,440,441],{"class":425},"(",[415,443,444],{"class":429},"'",[415,446,448],{"class":447},"sfazB","https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fv3\u002Fevents",[415,450,444],{"class":429},[415,452,453],{"class":429},",",[415,455,456],{"class":429}," {\n",[415,458,460,464,467,470,473,475],{"class":417,"line":459},2,[415,461,463],{"class":462},"swJcz","  method",[415,465,466],{"class":429},":",[415,468,469],{"class":429}," '",[415,471,472],{"class":447},"GET",[415,474,444],{"class":429},[415,476,477],{"class":429},",\n",[415,479,481,484,486],{"class":417,"line":480},3,[415,482,483],{"class":462},"  headers",[415,485,466],{"class":429},[415,487,456],{"class":429},[415,489,491,494,496,498,500,503],{"class":417,"line":490},4,[415,492,493],{"class":429},"    '",[415,495,389],{"class":462},[415,497,444],{"class":429},[415,499,466],{"class":429},[415,501,502],{"class":425}," userApiKey",[415,504,477],{"class":429},[415,506,508,510,513,515,517,519,522,524],{"class":417,"line":507},5,[415,509,493],{"class":429},[415,511,512],{"class":462},"Content-Type",[415,514,444],{"class":429},[415,516,466],{"class":429},[415,518,469],{"class":429},[415,520,521],{"class":447},"application\u002Fjson",[415,523,444],{"class":429},[415,525,477],{"class":429},[415,527,529],{"class":417,"line":528},6,[415,530,531],{"class":429},"  },\n",[415,533,535,538],{"class":417,"line":534},7,[415,536,537],{"class":429},"}",[415,539,540],{"class":425},")\n",[325,542,543,544,547,548,551,552,556],{},"The same API key works for all endpoints, including MCP operations, ",[349,545,546],{},"\u002Fme",", and ",[349,549,550],{},"\u002Fme\u002Fcrypto-addresses",". See ",[334,553,555],{"href":554},"\u002Fgetting-started\u002Fapi-docs#getting-an-api-key","Getting an API Key"," to create one.",[321,558,560],{"id":559},"mcp-endpoint-choice","MCP endpoint choice",[325,562,563],{},"CheckIn uses a two-tier MCP structure:",[565,566,567,583],"table",{},[568,569,570],"thead",{},[571,572,573,577,580],"tr",{},[574,575,576],"th",{},"Surface",[574,578,579],{},"Use it for",[574,581,582],{},"Auth",[584,585,586,599],"tbody",{},[571,587,588,593,596],{},[589,590,591],"td",{},[349,592,382],{},[589,594,595],{},"External assistants and public AI connectors that need event, hub, venue, check-in, bracelet, reservation, and signing-link workflows",[589,597,598],{},"OAuth 2.1 with email-code sign-in and scoped permissions",[571,600,601,605,608],{},[589,602,603],{},[349,604,374],{},[589,606,607],{},"Trusted backend integrations and first-party services that need raw Belong API, event, NFT, and transaction primitives",[589,609,610],{},[349,611,389],{},[325,613,614],{},"Do not expose the backend API-key MCP as a public assistant connector. Public assistants should use the OAuth MCP gateway, which audits tool calls and sends sensitive wallet or payment work to a Belong confirmation link.",[321,616,618],{"id":617},"identifying-the-user","Identifying the user",[325,620,621,622,466],{},"To find which user a request belongs to (for filtering hubs and events by ownership), call ",[349,623,624],{},"\u002Fapi\u002Fauth\u002Fget-session",[406,626,628],{"className":408,"code":627,"language":410,"meta":411,"style":411},"const res = await fetch('https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fauth\u002Fget-session', {\n  headers: { 'x-api-key': userApiKey },\n})\nconst { user } = await res.json()\nconst belongUserId = user.id \u002F\u002F Mongo-style ObjectID, e.g. \"507f1f77bcf86cd799439011\"\n",[349,629,630,656,679,685,712],{"__ignoreMap":411},[415,631,632,634,637,639,641,643,645,647,650,652,654],{"class":417,"line":418},[415,633,422],{"class":421},[415,635,636],{"class":425}," res ",[415,638,430],{"class":429},[415,640,434],{"class":433},[415,642,438],{"class":437},[415,644,441],{"class":425},[415,646,444],{"class":429},[415,648,649],{"class":447},"https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fauth\u002Fget-session",[415,651,444],{"class":429},[415,653,453],{"class":429},[415,655,456],{"class":429},[415,657,658,660,662,665,667,669,671,673,676],{"class":417,"line":459},[415,659,483],{"class":462},[415,661,466],{"class":429},[415,663,664],{"class":429}," {",[415,666,469],{"class":429},[415,668,389],{"class":462},[415,670,444],{"class":429},[415,672,466],{"class":429},[415,674,675],{"class":425}," userApiKey ",[415,677,678],{"class":429},"},\n",[415,680,681,683],{"class":417,"line":480},[415,682,537],{"class":429},[415,684,540],{"class":425},[415,686,687,689,691,694,696,699,701,704,706,709],{"class":417,"line":490},[415,688,422],{"class":421},[415,690,664],{"class":429},[415,692,693],{"class":425}," user ",[415,695,537],{"class":429},[415,697,698],{"class":429}," =",[415,700,434],{"class":433},[415,702,703],{"class":425}," res",[415,705,337],{"class":429},[415,707,708],{"class":437},"json",[415,710,711],{"class":425},"()\n",[415,713,714,716,719,721,724,726,729],{"class":417,"line":507},[415,715,422],{"class":421},[415,717,718],{"class":425}," belongUserId ",[415,720,430],{"class":429},[415,722,723],{"class":425}," user",[415,725,337],{"class":429},[415,727,728],{"class":425},"id ",[415,730,732],{"class":731},"sHwdD","\u002F\u002F Mongo-style ObjectID, e.g. \"507f1f77bcf86cd799439011\"\n",[734,735,736,737,740,741,337],"warning",{},"The Belong user ID is a Mongo-style ObjectID — not a UUID. If your app stores its own user IDs (for example a database UUID), keep them separate: never compare your internal IDs to Belong's ",[349,738,739],{},"ownerId"," \u002F ",[349,742,743],{},"membersIDs",[745,746,748],"h3",{"id":747},"profile-endpoints","Profile endpoints",[565,750,751,761],{},[568,752,753],{},[571,754,755,758],{},[574,756,757],{},"Endpoint",[574,759,760],{},"Returns",[584,762,763,773],{},[571,764,765,770],{},[589,766,767],{},[349,768,769],{},"GET \u002Fapi\u002Fv3\u002Fme",[589,771,772],{},"The authenticated user's profile",[571,774,775,780],{},[589,776,777],{},[349,778,779],{},"GET \u002Fapi\u002Fv3\u002Fme\u002Fcrypto-addresses",[589,781,782,783,786,787,786,790,793],{},"The user's linked crypto addresses (",[349,784,785],{},"address",", ",[349,788,789],{},"chainId",[349,791,792],{},"connector",")",[321,795,797],{"id":796},"hubs-events","Hubs & events",[745,799,801],{"id":800},"filtering-my-hubs","Filtering \"My Hubs\"",[325,803,804],{},"Fetch hubs with the user's API key, then filter by the Belong user ID:",[406,806,808],{"className":408,"code":807,"language":410,"meta":411,"style":411},"const userHubs = allHubs.filter(hub =>\n  hub.ownerId === belongUserId ||\n  (Array.isArray(hub.membersIDs) && hub.membersIDs.includes(belongUserId))\n)\n",[349,809,810,836,854,890],{"__ignoreMap":411},[415,811,812,814,817,819,822,824,827,829,833],{"class":417,"line":418},[415,813,422],{"class":421},[415,815,816],{"class":425}," userHubs ",[415,818,430],{"class":429},[415,820,821],{"class":425}," allHubs",[415,823,337],{"class":429},[415,825,826],{"class":437},"filter",[415,828,441],{"class":425},[415,830,832],{"class":831},"sHdIc","hub",[415,834,835],{"class":421}," =>\n",[415,837,838,841,843,846,849,851],{"class":417,"line":459},[415,839,840],{"class":425},"  hub",[415,842,337],{"class":429},[415,844,845],{"class":425},"ownerId ",[415,847,848],{"class":429},"===",[415,850,718],{"class":425},[415,852,853],{"class":429},"||\n",[415,855,856,859,861,864,867,869,872,875,878,880,882,884,887],{"class":417,"line":480},[415,857,858],{"class":425},"  (Array",[415,860,337],{"class":429},[415,862,863],{"class":437},"isArray",[415,865,866],{"class":425},"(hub",[415,868,337],{"class":429},[415,870,871],{"class":425},"membersIDs) ",[415,873,874],{"class":429},"&&",[415,876,877],{"class":425}," hub",[415,879,337],{"class":429},[415,881,743],{"class":425},[415,883,337],{"class":429},[415,885,886],{"class":437},"includes",[415,888,889],{"class":425},"(belongUserId))\n",[415,891,892],{"class":417,"line":490},[415,893,540],{"class":425},[325,895,896,897,900],{},"For a ",[329,898,899],{},"Discover"," view (public hubs the user hasn't joined), fetch a larger batch (50+) and filter out the user's own hubs — a small page may contain only the user's hubs and leave nothing to discover.",[745,902,904],{"id":903},"connecting-events-to-a-hub","Connecting events to a hub",[325,906,907,908,911,912,915],{},"Use ",[349,909,910],{},"connectEventIds"," (additive, de-duplicates automatically) rather than replacing the whole ",[349,913,914],{},"categorySubEventIDs"," array:",[406,917,919],{"className":408,"code":918,"language":410,"meta":411,"style":411},"await fetch(`https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fv3\u002Fhubs\u002F${hubId}`, {\n  method: 'PUT',\n  headers: { 'Content-Type': 'application\u002Fjson', 'x-api-key': apiKey },\n  body: JSON.stringify({ connectEventIds: [eventId] }),\n})\n",[349,920,921,949,964,1001,1035],{"__ignoreMap":411},[415,922,923,926,928,930,933,936,939,942,945,947],{"class":417,"line":418},[415,924,925],{"class":433},"await",[415,927,438],{"class":437},[415,929,441],{"class":425},[415,931,932],{"class":429},"`",[415,934,935],{"class":447},"https:\u002F\u002Fapi.belong.net\u002Fapi\u002Fv3\u002Fhubs\u002F",[415,937,938],{"class":429},"${",[415,940,941],{"class":425},"hubId",[415,943,944],{"class":429},"}`",[415,946,453],{"class":429},[415,948,456],{"class":429},[415,950,951,953,955,957,960,962],{"class":417,"line":459},[415,952,463],{"class":462},[415,954,466],{"class":429},[415,956,469],{"class":429},[415,958,959],{"class":447},"PUT",[415,961,444],{"class":429},[415,963,477],{"class":429},[415,965,966,968,970,972,974,976,978,980,982,984,986,988,990,992,994,996,999],{"class":417,"line":480},[415,967,483],{"class":462},[415,969,466],{"class":429},[415,971,664],{"class":429},[415,973,469],{"class":429},[415,975,512],{"class":462},[415,977,444],{"class":429},[415,979,466],{"class":429},[415,981,469],{"class":429},[415,983,521],{"class":447},[415,985,444],{"class":429},[415,987,453],{"class":429},[415,989,469],{"class":429},[415,991,389],{"class":462},[415,993,444],{"class":429},[415,995,466],{"class":429},[415,997,998],{"class":425}," apiKey ",[415,1000,678],{"class":429},[415,1002,1003,1006,1008,1011,1013,1016,1018,1021,1024,1026,1029,1031,1033],{"class":417,"line":490},[415,1004,1005],{"class":462},"  body",[415,1007,466],{"class":429},[415,1009,1010],{"class":425}," JSON",[415,1012,337],{"class":429},[415,1014,1015],{"class":437},"stringify",[415,1017,441],{"class":425},[415,1019,1020],{"class":429},"{",[415,1022,1023],{"class":462}," connectEventIds",[415,1025,466],{"class":429},[415,1027,1028],{"class":425}," [eventId] ",[415,1030,537],{"class":429},[415,1032,793],{"class":425},[415,1034,477],{"class":429},[415,1036,1037,1039],{"class":417,"line":507},[415,1038,537],{"class":429},[415,1040,540],{"class":425},[745,1042,1044],{"id":1043},"query-parameters","Query parameters",[565,1046,1047,1059],{},[568,1048,1049],{},[571,1050,1051,1054,1057],{},[574,1052,1053],{},"Parameter",[574,1055,1056],{},"Type",[574,1058,237],{},[584,1060,1061,1083,1096,1109,1130,1149,1161,1179],{},[571,1062,1063,1068,1071],{},[589,1064,1065],{},[349,1066,1067],{},"take",[589,1069,1070],{},"integer (1–100, default 20)",[589,1072,1073,1074],{},"Items per page — ",[329,1075,1076,1077,1079,1080],{},"use ",[349,1078,1067],{},", not ",[349,1081,1082],{},"limit",[571,1084,1085,1090,1093],{},[589,1086,1087],{},[349,1088,1089],{},"page",[589,1091,1092],{},"integer",[589,1094,1095],{},"1-based page index",[571,1097,1098,1103,1106],{},[589,1099,1100],{},[349,1101,1102],{},"cursor",[589,1104,1105],{},"string",[589,1107,1108],{},"Cursor from a previous page",[571,1110,1111,1116,1125],{},[589,1112,1113],{},[349,1114,1115],{},"sort",[589,1117,1118,1121,1122],{},[349,1119,1120],{},"createdAt"," | ",[349,1123,1124],{},"updatedAt",[589,1126,1127,1128],{},"Default ",[349,1129,1120],{},[571,1131,1132,1137,1145],{},[589,1133,1134],{},[349,1135,1136],{},"order",[589,1138,1139,1121,1142],{},[349,1140,1141],{},"asc",[349,1143,1144],{},"desc",[589,1146,1127,1147],{},[349,1148,1144],{},[571,1150,1151,1156,1158],{},[589,1152,1153],{},[349,1154,1155],{},"search",[589,1157,1105],{},[589,1159,1160],{},"Case-insensitive across name, slug, description",[571,1162,1163,1168,1176],{},[589,1164,1165],{},[349,1166,1167],{},"hubType",[589,1169,1170,1121,1173],{},[349,1171,1172],{},"group",[349,1174,1175],{},"nftCollection",[589,1177,1178],{},"Filter by hub type",[571,1180,1181,1186,1194],{},[589,1182,1183],{},[349,1184,1185],{},"status",[589,1187,1188,1121,1191],{},[349,1189,1190],{},"PUBLISHED",[349,1192,1193],{},"INCOMPLETE",[589,1195,1196],{},"Filter by status",[734,1198,1199,1206,1207,1210,1211,1214],{},[329,1200,1201,1202,1205],{},"The ",[349,1203,1204],{},"private"," parameter pitfall."," It expects a boolean, but query strings are always strings — sending ",[349,1208,1209],{},"private=false"," causes a ",[349,1212,1213],{},"400",". Omit the parameter entirely and user-specific access rules apply automatically.",[321,1216,1218],{"id":1217},"common-mistakes","Common mistakes",[1220,1221,1222,1230,1233,1240,1246],"ol",{},[342,1223,1224,1225,1227,1228],{},"Using ",[349,1226,404],{}," instead of ",[349,1229,389],{},[342,1231,1232],{},"Comparing your internal user IDs to Belong's Mongo-style IDs",[342,1234,1224,1235,1227,1237,1239],{},[349,1236,1082],{},[349,1238,1067],{}," for pagination",[342,1241,1242,1243,1245],{},"Sending ",[349,1244,1209],{}," as a string (omit it instead)",[342,1247,1248],{},"Fetching too few hubs for a Discover view",[321,1250,1252],{"id":1251},"related","Related",[339,1254,1255,1260,1265],{},[342,1256,1257,1259],{},[334,1258,336],{"href":16}," — full REST reference",[342,1261,1262,1264],{},[334,1263,149],{"href":150}," — CheckIn edge functions",[342,1266,1267],{},[334,1268,153],{"href":154},[1270,1271,1272],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}",{"title":411,"searchDepth":459,"depth":459,"links":1274},[1275,1276,1278,1279,1282,1287,1288],{"id":323,"depth":459,"text":92},{"id":385,"depth":459,"text":1277},"Authentication: x-api-key",{"id":559,"depth":459,"text":560},{"id":617,"depth":459,"text":618,"children":1280},[1281],{"id":747,"depth":480,"text":748},{"id":796,"depth":459,"text":797,"children":1283},[1284,1285,1286],{"id":800,"depth":480,"text":801},{"id":903,"depth":480,"text":904},{"id":1043,"depth":480,"text":1044},{"id":1217,"depth":459,"text":1218},{"id":1251,"depth":459,"text":1252},"Authenticate with the Belong API, identify users, and query hubs and events for Belong CheckIn integrations.","md",null,{},{"title":144,"icon":147},{"title":144,"description":1289},"oasT4yviNAWANfU-mDxelFfLAdVOYLqZN80ICuPr1hA",[1297,1299],{"title":133,"path":134,"stem":135,"description":1298,"icon":136,"children":-1},"Belong CheckIn whitepaper covering platform, economics, and architecture.",{"title":149,"path":150,"stem":151,"description":1300,"icon":18,"children":-1},"The serverless functions that power Belong CheckIn's AI chat, transcription, and tool discovery.",1785598153686]