GET
/
categories
curl --request GET \
  --url https://cookiechimp.com/api/v1/categories \
  --header 'Authorization: <api-key>'
{
  "pagination": {
    "prev_url": "/api/v1/categories?page=",
    "next_url": "/api/v1/categories?page=2",
    "count": 4,
    "page": 1,
    "prev": null,
    "next": 2
  },
  "data": [
    {
      "id": "essential",
      "name": "Essential",
      "description": "Cookies essential for website functionality",
      "required": true,
      "created_at": "2023-01-01T00:00:00Z",
      "updated_at": "2023-01-02T00:00:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

limit
integer
default:20

Number of resources to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of resources to skip

Required range: x >= 0
sort
string

Field to sort by

order
enum<string>

Sort order

Available options:
asc,
desc

Response

200
application/json
List of categories
pagination
object
Example:
{
  "prev_url": "/api/v1/categories?page=",
  "next_url": "/api/v1/categories?page=2",
  "count": 4,
  "page": 1,
  "prev": null,
  "next": 2
}
data
object[]