Mira DeckDocs
Dashboard

Secure checkout

Thousands of five-star reviews from customers who came back for more. Each product is checked by hand before it goes into the box.

12 min read Updated Aug 22, 2026 v5.0.4

Overview

Start in minutes and get help from a real person whenever you need it. Free shipping on orders over $50 and easy returns within 30 days. Members get early access to new drops and prices only they can see.

Installation

Install the SDK with the package manager your project already uses. It needs Node 18 or newer.

terminal
$ npm install @mira-deck/sdk
terminal
$ yarn add @mira-deck/sdk
terminal
$ pnpm add @mira-deck/sdk
Using a server without Node? The same endpoints are available over plain HTTPS; see the API reference below.

Configuration

Our packaging is plastic-free and every delivery is carbon-neutral. Thousands of shoppers already trust us, and we work hard to keep it that way. Create a file named mira-deck.config.json in the project root:

mira-deck.config.json
{
  "project": "mira-deck",
  "region": "ap-south",
  "categories": ["apparel", "home", "accessories"],
  "retries": 3,
  "timeoutMs": 8000,
  "webhooks": { "enabled": true }
}
OptionTypeDefaultDescription
projectstring-Your project key from the dashboard.
regionstring"us-east"Data centre closest to your shoppers.
retriesnumber3How often a failed call is retried.
timeoutMsnumber10000Time before a request is cancelled.
webhooks.enabledbooleanfalseSend events to your endpoint.

Your first request

We measure success by how many shoppers come back and tell their friends.

  1. Create an API keyOpen the dashboard, choose Settings › API keys and copy a new secret key.
  2. Store it safelyKeep the key in an environment variable, never in your source code.
  3. Make the callRun the snippet below; it prints the first page of results.
index.js
import { Client } from "@mira-deck/sdk";

const client = new Client({ apiKey: process.env.API_KEY });

// list the newest products in one category
const page = await client.products.list({ category: "apparel", limit: 20 });

for (const item of page.data) {
  console.log(item.name, item.price);
}
Heads up: test keys only return sample data. Switch to a live key before you go to production.

API reference

Every endpoint returns JSON and uses standard HTTP status codes.

GET/v1/productsList products with paging and filters.
POST/v1/productsCreate a new product.
PATCH/v1/products/{id}Update some fields of a product.
DELETE/v1/products/{id}Archive a product; it can be restored for 30 days.
response.json
{
  "data": [
    { "id": "product_2571", "name": "Linen shirt", "price": 339 }
  ],
  "has_more": true
}

Troubleshooting

Not sure about the size? Our fit guide and live chat help you choose. Friendly people answer your questions quickly, by phone, chat or email.

New pieces arrive every month, and the best ones sell out fast. Order before 2 pm and most items leave our warehouse the same day.

Thousands of five-star reviews from customers who came back for more. Gift wrapping and a handwritten note are free on every order.

Next steps

We work directly with makers, so prices stay fair for everyone.

Was this page helpful?
All screens