Skip to main content
GET
/
categories
List Categories
curl --request GET \
  --url https://api.example.com/categories
{
  "id": 123,
  "name": "<string>"
}
Retrieve a list of all categories.

Authentication

This endpoint is public and does not require authentication.

Response

Returns an array of category objects.
id
number
The unique identifier of the category.
name
string
The name of the category.

Example Request

curl -X GET https://api.example.com/categories

Example Response

[
  {
    "id": 1,
    "name": "Beverages"
  },
  {
    "id": 2,
    "name": "Snacks"
  },
  {
    "id": 3,
    "name": "Bakery"
  }
]

Build docs developers (and LLMs) love