SDK Documentation

Official SDKs

Type-safe clients for TypeScript and Python that wrap every API endpoint. Verify merchants, validate receipts, manage subscriptions, and check entitlements with a single function call.

Installation

Terminal
npm install @registeredbrands/sdk

Quick Start

index.ts
import { RegisteredBrandsClient } from "@registeredbrands/sdk";

const rb = new RegisteredBrandsClient({
  apiKey: process.env.RB_API_KEY!,
  // baseUrl defaults to https://registeredbrands.ai/api/v1
});

// Verify a merchant before payment
const merchant = await rb.verifyMerchant({
  capsuleId: "cap_H6jN1wQ8",
  paymentAddress: "0x7a3B...f91E",
  chain: "base",
});

if (merchant.recommendation === "allow") {
  console.log("Safe to pay:", merchant.brandName);
} else {
  console.log("Blocked:", merchant.recommendation);
}

API Reference