Skip to content

List

products.list() -> ProductListResponse
GET/products

Lists all products.

ReturnsExpand Collapse
class ProductListResponse:
data: List[Product]

List of products.

id: str

FRAGMENT generated unique ID.

code: str

Product code.

created: datetime

Timestamp when the product was created. Uses ISO 8601 format.

formatdate-time
update_version: float

Current version of the product.

workspace_id: str

Workspace ID of the product.

description: Optional[str]

Product description.

List

from fragment import Fragment

client = Fragment()
products = client.products.list()
print(products.data)
{
  "data": [
    {
      "id": "product_1234567890",
      "code": "PROD_001",
      "created": "2024-01-13T00:00:00Z",
      "update_version": 1,
      "workspace_id": "ws_1234567890",
      "description": "Premium subscription service"
    }
  ]
}
Returns Examples
{
  "data": [
    {
      "id": "product_1234567890",
      "code": "PROD_001",
      "created": "2024-01-13T00:00:00Z",
      "update_version": 1,
      "workspace_id": "ws_1234567890",
      "description": "Premium subscription service"
    }
  ]
}