Store Kit
Products

Get All Products

Retrieve a list of all products in your store

Get All Products

Retrieve a list of all products in your store with their details including pricing, stock, and category information.

Endpoint

GET /v1/products

Base URL: https://api.storekit.app

Authentication

All API requests require authentication using an API key. Generate your API key from the StoreKit Dashboard under API Key Usage section.

Headers

NameTypeRequiredDescription
x-api-keystringYesYour API key for authentication

Response

Success Response (200 OK)

Returns an array of product objects with the following structure:

{
  "products": [
    {
      "id": "cmc36rnvb0001nx0kbrxfuuh7",
      "name": "Dry fruits 2",
      "description": "test",
      "price": 100,
      "stock": 100,
      "image": "https://cdn.storekit.app/uploads/1750325758413-dry-fruits-2",
      "status": "ACTIVE",
      "category": "Dry fruits",
      "createdAt": "2025-06-19T09:36:05.014Z",
      "storeId": "cmc1pixig0000la0k7lbwtor7"
    },
    {
      "id": "cmc36x85s0007nx0koog2cn0b",
      "name": "Badam",
      "description": "badam",
      "price": 756,
      "stock": 56,
      "image": "https://cdn.storekit.app/uploads/1750326021542-badam",
      "status": "ACTIVE",
      "category": "Dry fruits",
      "createdAt": "2025-06-19T09:40:24.574Z",
      "storeId": "cmc1pixig0000la0k7lbwtor7"
    }
  ]
}

Product Object Schema

FieldTypeDescription
idstringUnique identifier for the product
namestringProduct name
descriptionstringProduct description
pricenumberProduct price
stocknumberAvailable stock quantity
imagestringProduct image URL
statusstringProduct status (ACTIVE, INACTIVE)
categorystringProduct category
createdAtstringISO 8601 timestamp of creation
storeIdstringStore identifier

Error Response (401 Unauthorized)

{
  "error": "Invalid or missing API key"
}

Code Examples

curl -X GET "https://api.storekit.app/v1/products" \
  -H "x-api-key: sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402"
const response = await fetch('https://api.storekit.app/v1/products', {
  method: 'GET',
  headers: {
    'x-api-key': 'sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402'
  }
});

const data = await response.json();
console.log(data);
import axios from 'axios';

const response = await axios.get('https://api.storekit.app/v1/products', {
  headers: {
    'x-api-key': 'sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402'
  }
});

console.log(response.data);
const https = require('https');

const options = {
  hostname: 'api.storekit.app',
  port: 443,
  path: '/v1/products',
  method: 'GET',
  headers: {
    'x-api-key': 'sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402'
  }
};

const req = https.request(options, (res) => {
  let data = '';
  
  res.on('data', (chunk) => {
    data += chunk;
  });
  
  res.on('end', () => {
    console.log(JSON.parse(data));
  });
});

req.end();
import requests

url = "https://api.storekit.app/v1/products"
headers = {
    "x-api-key": "sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402"
}

response = requests.get(url, headers=headers)
data = response.json()
print(data)
<?php
$curl = curl_init();

curl_setopt_array($curl, [
    CURLOPT_URL => "https://api.storekit.app/v1/products",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "x-api-key: sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402"
    ],
]);

$response = curl_exec($curl);
curl_close($curl);

$data = json_decode($response, true);
print_r($data);
?>
$.ajax({
    url: 'https://api.storekit.app/v1/products',
    method: 'GET',
    headers: {
        'x-api-key': 'sk_live_be186797384f05ff038e1751e8ff9572cf8a05adfdba79abb7e8bcd165f2c402'
    },
    success: function(data) {
        console.log(data);
    },
    error: function(xhr, status, error) {
        console.error('Error:', error);
    }
});

Quick Start

Get your API Key

Navigate to your StoreKit Dashboard and go to the API Key Usage section to generate your API key.

Make your first request

Use any of the code examples above to fetch your products. Replace the example API key with your actual key.

Handle the response

The API returns a JSON object with a products array containing all your store's products.

Rate Limiting

API requests are rate-limited to ensure fair usage. Check the response headers for rate limit information.

Next Steps

Now that you can retrieve products, you might want to:

  • Learn about filtering and pagination
  • Explore product creation and updates
  • Integrate with your frontend application
  • Set up webhooks for real-time updates--- title: Hello World