Organization Management
Create, update, and manage organizations.
Updated
On this page
Overview
The Dashboard API provides programmatic access to manage your organization. Requires a secret key (sk_*).
Admin SDK Module
import { DashClient } from "dash4devs"
const admin = new DashClient({ apiKey: process.env.DASH4DEVS_SECRET_KEY! })
// Product management
const products = await admin.admin.listProducts()
await admin.admin.createProduct({ name: "New Product", price: "29.99" })
await admin.admin.updateProduct("prod_abc", { price: "34.99" })
await admin.admin.deleteProduct("prod_abc")
// Category management
await admin.admin.createCategory({ name: "New Category" })
await admin.admin.updateCategory("cat_abc", { name: "Updated" })
// Brand management
await admin.admin.createBrand({ name: "New Brand" })
await admin.admin.updateBrand("brand_abc", { name: "Updated" })