Skip to main content
Results are automatically scoped to the authenticated tenant — products from other tenants are never returned.

Endpoint

GET /api/products

Authentication

Authorization
string
required
Bearer token. Format: Bearer <token>

Response

[].id
string
Unique product identifier (UUID).
[].name
string
Product display name.
[].sku
string
Stock keeping unit identifier.
[].price
number
Product price.
[].tenantId
string
UUID of the tenant that owns this product.
[].createdAt
string
ISO 8601 timestamp of when the product was created.
[].updatedAt
string
ISO 8601 timestamp of the last update.

Examples

curl --request GET \
  --url http://localhost:5000/api/products \
  --header 'Authorization: Bearer <token>'

Example response

[
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Wireless Keyboard",
    "sku": "WK-1001",
    "price": 49.99,
    "tenantId": "t9e8d7c6-b5a4-3210-fedc-ba9876543210",
    "createdAt": "2026-01-15T08:30:00.000Z",
    "updatedAt": "2026-03-10T14:22:00.000Z"
  },
  {
    "id": "b2c3d4e5-f6a7-8901-bcde-f01234567891",
    "name": "USB-C Hub",
    "sku": "UC-2045",
    "price": 34.99,
    "tenantId": "t9e8d7c6-b5a4-3210-fedc-ba9876543210",
    "createdAt": "2026-02-01T09:00:00.000Z",
    "updatedAt": "2026-02-01T09:00:00.000Z"
  }
]

Build docs developers (and LLMs) love