Skip to content
Reponse.ai LogoDocs
DocsAPISDKsGuides

Search Documentation

Search for an article...

Getting Started

  • Overview
  • Architecture
  • Installation
  • Authentication
  • First Request

Products & Collections

  • Products — List
  • Products — Get
  • Products — Metafields
  • Collections — List
  • Collections — Get
  • Collections — Products

Cart & Checkout

  • Cart — Create
  • Cart — Get
  • Cart — Add Item
  • Cart — Update Item
  • Cart — Remove Item
  • Cart — Apply Promotion
  • Checkout — Stripe
  • Checkout — Payment Intent
  • Checkout — ACP

Orders & Fulfillment

  • Orders — Create
  • Orders — Get
  • Orders — Confirm
  • Orders — Cancel
  • Orders — Fulfill
  • Orders — Refund

Commerce

  • Inventory — Get
  • Inventory — Update
  • Shipping — Rates
  • Discounts — List
  • Discounts — Create
  • Discounts — Validate
  • Subscriptions — Manage

Loyalty & Gift Cards

  • Loyalty — Balance
  • Loyalty — Redeem
  • Loyalty — Referral
  • Gift Cards — List
  • Gift Cards — Redeem

Tickets & Support

  • Tickets — List
  • Tickets — Create
  • Tickets — Reply

Platform

  • Product Feed — JSON
  • Product Feed — CSV
  • Theme — Get
  • Approvals — Execute
  • Approvals — Reject
  • Geocode

SDKs

  • SDK Overview
  • TypeScript SDK
  • React Hooks

Guides

  • Chat Widget
  • Shopify Sync
  • Storefront Starter
  • Loyalty Program
  • Discounts & Promotions
  • Subscriptions
  • Klaviyo Integration
  • Custom Domains
  • Agentic Commerce (ACP)
  • A2A Protocol
  • AI Engines
  • MCP Server

Webhooks

  • Webhooks Overview
  • Events Reference
  • Shopify Webhooks
  • Stripe Webhooks
  • Reviews (Stamped / Trustpilot)
  • Logistics
  • Email Inbound

Resources

  • Environment Variables
  • Rate Limits
  • Changelog
DocsGetting StartedFirst Request

First Request

Make your first Reponse API call in under five minutes.

1 min read/Last updated Jul 22, 2026
On this page

Overview

This quickstart walks you through making your first API call. You will install the SDK, initialize the client, fetch products from your catalog, and verify the response. By the end, you will have a working connection to the Reponse API.

Prerequisites

  • Node.js 18+ installed
  • A Reponse API key (see Authentication)
  • The @reponseai/sdk package installed (see Installation)

Step 1 — Install the SDK

bash
npm install @reponseai/sdk

Step 2 — Set Your API Key

Export the key in your terminal or add it to `.env.local`:

bash
export REPONSE_API_KEY=rp_live_abc123...

Step 3 — Initialize the Client

typescript
import { Reponse } from "@reponseai/sdk";

const reponse = new Reponse({
  apiKey: process.env.REPONSE_API_KEY!,
});

Step 4 — List Products

typescript
const { data } = await reponse.catalog.listProducts({
  query: { limit: 10 },
});

console.log(`Fetched ${data.data.length} products`);
console.log(data.data.map((p) => p.title));

Step 5 — Verify the Response

A successful response looks like this:

json
{
  "data": [
    {
      "id": "prod_01H...",
      "title": "Classic Sneaker",
      "handle": "classic-sneaker",
      "status": "active",
      "variants": [
        { "id": "var_01H...", "sku": "SNK-001", "price": "89.00" }
      ]
    }
  ],
  "meta": {
    "total": 42,
    "limit": 10,
    "offset": 0
  }
}

Alternative: cURL

You can also make the request directly with cURL:

bash
curl -X GET "https://api.reponse.ai/v1/catalog/products?limit=10" \
  -H "Authorization: Bearer rp_live_abc123..."

Step 6 — Send a Chat Message

Once your catalog is verified, try sending a chat message:

typescript
const chat = await reponse.chat.sendMessage({
  body: {
    workspaceId: "ws_01H...",
    message: "What is your best-selling product?",
  },
});

console.log(chat.data.reply);

Next Steps

  • Chat Widget — Embed the AI assistant on your storefront
  • React Hooks — Fetch data declaratively in React
  • AI Engines — Understand how engine selection works

Troubleshooting

IssueSolution
401 UnauthorizedCheck that your API key is correct and not revoked.
Empty data arrayYour workspace has no synced products yet. Run a Shopify sync first.
ECONNREFUSEDVerify the base URL and your network/firewall settings.
Timeout errorsIncrease the timeout option in the client constructor.
PreviousAuthentication
NextProducts — List