How to retrieve product categories

How to retrieve product categories

Use this guide to fetch product categories. Category IDs are required when creating or updating products.


Request — all categories (global)

Bash
curl -X GET "https://your-event-domain.com/api/v2/categories/get" \
  -H "Authorization: Bearer your_api_key_here"

Request — categories for a specific event

Bash
curl -X GET "https://your-event-domain.com/api/v2/categories/get?event_id=7" \
  -H "Authorization: Bearer your_api_key_here"

Understanding parent_id

Categories can be hierarchical. parent_id: 0 means top-level root. A non-zero parent_id references its parent category's id.


Notes

  • Use the id values as categories in POST /api/v2/product/set and in account activity/interest category fields

  • Categories are shared globally across events