Skip to main content
GET
/
categories
List Categories
curl --request GET \
  --url https://api.example.com/categories
[
  {
    "id": "1",
    "name": "Electronics",
    "createdAt": "2024-01-15T10:30:00Z"
  },
  {
    "id": "2",
    "name": "Clothing",
    "createdAt": "2024-01-16T14:20:00Z"
  }
]
This endpoint returns all available product categories. This is a public endpoint that does not require authentication.

Request

No parameters required.

Response

[
  {
    "id": "1",
    "name": "Electronics",
    "createdAt": "2024-01-15T10:30:00Z"
  },
  {
    "id": "2",
    "name": "Clothing",
    "createdAt": "2024-01-16T14:20:00Z"
  }
]

Response Fields

id
string
required
Unique identifier for the category
name
string
required
Name of the category
createdAt
string
required
ISO 8601 timestamp of when the category was created