Medusa Product Categories API

Products can be categorized into categories. Categories are nested and their heirarchy can be managed, giving admin users flexibility in how they categorize their products. These API routes allow admin users to manage categories and the products in them.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/product-categories List product categories · List Product Categories #
Ask an LLM
“How do I get the product categories in the store?”
“Can I list only the active categories?”
Tell an agent
List all product categories.
Find product categories matching {q}.
POST /admin/product-categories Create a product category · Create Product Category #
Ask an LLM
“How do I create a new product category for my store?”
“Can a new category be a subcategory of an existing one?”
Tell an agent
Create a product category named {name}.
Create category {name} under parent {parent}.
GET /admin/product-categories/{id} Get a product category (admin) · Get a Product Category #
Ask an LLM
“How do I look up one product category by ID in the admin store?”
“Can I include a category's parent and child categories in the response?”
Tell an agent
Get product category {id}.
Show category {id} with its parent and child categories.
POST /admin/product-categories/{id} Update a product category · Update a Product Category #
Ask an LLM
“How do I rename an existing product category?”
“Can I deactivate a category or change its parent?”
Tell an agent
Rename product category {id} to {name}.
Set category {id} active to {active}.
DELETE /admin/product-categories/{id} Delete a product category · Delete a Product Category #
Ask an LLM
“How do I delete a product category?”
“Why can't I delete a category that still has child categories?”
Tell an agent destructive · confirm first
Delete product category {id}.
Remove category {id} from the store.
POST /admin/product-categories/{id}/products Add or remove products from a category · Manage Products in Product Category #
Ask an LLM
“How do I add products to a product category?”
“Can I remove products from a category without deleting the products?”
Tell an agent
Add products {add} to category {id}.
Remove products {remove} from category {id}.
GET /store/product-categories List product categories (storefront) · List Product Categories #
Ask an LLM
“How do I list product categories for my storefront?”
“Can I search categories by name or handle?”
Tell an agent
List storefront product categories.
Search storefront categories for {q}.
GET /store/product-categories/{id} Get a product category (storefront) · Get a Product Category #
Ask an LLM
“How do I fetch one product category by ID for the storefront?”
“Can I get a category in a specific locale?”
Tell an agent
Get storefront category {id}.
Show category {id} in locale {locale}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/medusa:medusa-product-categories-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

medusa-product-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Product Categories API
  version: 2.19.0
  description: 'Operations tagged Product Categories across 2 of this provider''s published API definitions: medusa-admin-openapi.yaml, medusa-store-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


# --- truncated at 32 KB (168 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-product-categories-api-openapi.yml