commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Category → Get Category by Key

AI-generated

Summary

Retrieve a commercetools category by its unique key, optionally applying expand parameter filters.

Inputs

  • Category Key (required) — The unique key string identifying the category to retrieve.
  • Filters — Optional query parameters to modify the response, including the 'expand' parameter for expanding references.

Output shape

a single JSON object representing the commercetools category matching the specified key

Returns the full category object if found; errors on failure unless 'Continue On Fail' is enabled. Query parameters such as 'expand' are sent as URL query parameters to modify the response.

Examples

Example 1: Retrieve a category with key 'summer-collection' expanding referenced objects

Set 'Category Key' to 'summer-collection' and add 'expand' query parameter as needed.

Links

Discussion