Skip to main content
GET
/
products
/
counts
Get Product Counts
curl --request GET \
  --url https://staging-api.puppetvendors.com/products/counts \
  --header 'x-access-token: <api-key>'

Documentation Index

Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt

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

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Returns the number of products you have in each status tab (active, draft, pending, error, deleted, archived). Vendor tokens are automatically scoped to your own products only.

Use Cases

  • Display status badges or counters in your product dashboard
  • Check how many products are pending approval before submitting more
  • Monitor error counts after a bulk import

Required Scope

products:read

Response

200
{
  "success": true,
  "data": {
    "counts": {
      "active": 45,
      "draft": 12,
      "pending": 3,
      "error": 1,
      "deleted": 0,
      "archived": 5
    }
  }
}

Example

curl -X GET "https://staging-api.puppetvendors.com/products/counts" \
  -H "x-access-token: YOUR_VENDOR_JWT"