From 0 to 1
Everything you need to build on Pi
Eight focused guides take your Pi app from registration to a Mainnet listing.
Build your first Pi app
Take your app from 0 to 1 — register, develop in the sandbox, and go to production.
Get startedAuthenticate the user
Verify a Pioneer's identity and obtain a UID, username, and access token.
Set up authAccept payments
Process U2A and A2U Pi payments with the approve / complete flow.
Add paymentsSet up ads
Show interstitial and rewarded ads, and verify rewards on your backend.
Enable adsUse native features
Tap the Pi Browser — chat rooms, share dialog, wallet, and more.
Explore nativeAPI Reference
Complete REST endpoints and SDK signatures for the Pi Platform v2.
Browse the APIConcepts
Understand Mainnet vs Testnet, launch phases, and the Pi platform model.
Learn the conceptsTroubleshooting
Avoid common mistakes and find community support when you get stuck.
Get helpAuthenticate a Pioneer in three lines
Use the official pi-sdk-js helper for a clean, Promise-based API. Load the SDK, connect, and read the Pioneer's username & access token.
- Typed, framework-aware helper packages
- Correct auth & payment lifecycle handling
- Works in the Pi Browser sandbox
// connect a Pioneer with pi-sdk-js
import { PiSdkBase } from '@pinetwork/pi-sdk-js';
const pi = new PiSdkBase();
const { user, accessToken } = await pi.connect(['username']);
console.log(`Hello, ${user.username}`);