Skip to main content
Platform API v2 · Live on Mainnet

Pi Docs

Pi Documentation for Developers. Build apps that authenticate Pioneers, accept Pi payments, and tap native Pi Browser features.

Search the docs, SDK & API…⌘K
Quick Start

Authenticate 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
auth.js
// 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}`);