Quickstart
Get up and running with RecurrBase in 5 minutes.
Step 1: Get an API Key
- Sign in to the RecurrBase dashboard
- Navigate to API Keys
- Generate a new key with
FULLscope - Copy the key (you'll only see it once)
API keys are only shown once when created. Make sure to save them securely.
Step 2: Install SDK
npm install @recurrbase/sdk
Step 3: Initialize Client
import { RecurrBase } from "@recurrbase/sdk";
const recurrbase = new RecurrBase({
apiKey: process.env.RECURRBASE_API_KEY!,
baseUrl: "https://api.recurrbase.xyz",
});
Step 4: Check Subscription Status
const subscription = await recurrbase.subscriptions.status(walletAddress);
if (subscription.isActive) {
console.log(`Active until ${subscription.expiresAt}`);
} else {
console.log("No active subscription");
}
Step 5: Set Up Webhooks
Configure a webhook endpoint in the dashboard to receive subscription events.
See Webhooks Overview for details.
Next Steps
- Wallet Login - Authenticate users
- Subscription Concepts - Understand subscriptions
- Integration Examples - Full code examples