Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.barker.money/llms.txt

Use this file to discover all available pages before exploring further.

Status

SDKPackageStatus
JavaScript / TypeScript@barker/sdk-jsAlpha — pin exact version
Pythonbarker-sdkAlpha — pin exact version
Both SDKs are thin clients generated from our OpenAPI spec. They handle auth, retries, and typed responses — nothing magic.

JavaScript / TypeScript

Install

npm install @barker/sdk-js
# or
pnpm add @barker/sdk-js

Use

import { createBarkerClient } from "@barker/sdk-js";

const barker = createBarkerClient({
  apiKey: process.env.BARKER_API_KEY!,
});

// List products
const { data, error } = await barker.GET("/api/partner/products");
if (error) throw new Error(error.message);
console.log(data);

Configuration

OptionDefaultNotes
apiKey— (required)bk_live_*
baseUrlhttps://api.barker.moneyOverride only for self-host / proxy
timeout15000 msPer request
retry3 on idempotent + 5xxExponential backoff

Python

Install

pip install barker-sdk

Use

from barker import BarkerClient

barker = BarkerClient(
    api_key=os.environ["BARKER_API_KEY"],
)

products = barker.products.list()
for p in products:
    print(p.slug, p.latest_metrics.net_apy_for_user)

Generate your own client

If your language isn’t covered or you want full control, point any OpenAPI codegen tool at our spec:
https://docs.barker.money/api-reference/openapi.yaml
Recommended generators: The spec is the source of truth — official SDKs are regenerated from it on every release.