Medusa Products API

A product is a set of variants that the customer chooses from when making a purchase. A product can be organized into categories or collections. A product can have many options, and variants for each of these options' values. These API routes allow admin users to manage products.

GitHub OpenAPI
Business capability
Product Lifecycle Management BC-820

Operations 27

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/products List products · List Products #
Ask an LLM
“How do I list all products in my store?”
“Can I filter products by title, handle or status?”
Tell an agent
List all products.
List products with title {title}.
POST /admin/products Create a product · Create Product #
Ask an LLM
“How do I add a new product to my store?”
“Can I set a product's title, description and variants in one request?”
Tell an agent
Create a product titled {title}.
Create product {title} with variants {variants}.
POST /admin/products/batch Create, update or delete products in bulk · Manage Products #
Ask an LLM
“Can I create many products in one request?”
“Is there a bulk way to update or delete products?”
Tell an agent
Create these products in one batch: {create}.
Update and delete products in bulk with {update} and {delete}.
POST /admin/products/export Export products to CSV · Export Products #
Ask an LLM
“How do I export all products to a CSV file?”
“Can I export only products with a certain tag?”
Tell an agent
Export all products to CSV.
Export products tagged {tags} to a CSV.
POST /admin/products/import Start a product import from a file · Create Product Import #
Ask an LLM
“How do I import products from a CSV file?”
“What file do I upload to kick off a product import?”
Tell an agent
Start a product import from file {file}.
Import the products in {file} into Medusa.
POST /admin/products/import/{transaction_id}/confirm Confirm a product import · Confirm Product Import #
Ask an LLM
“How do I confirm that an imported product file should be imported?”
“What do I send to start the product import process?”
Tell an agent
Confirm product import {transaction_id}.
Start importing the products from import {transaction_id}.
POST /admin/products/imports Start a product import from a file · Create Product Import #
Ask an LLM
“How do I start importing products from a CSV I uploaded?”
“Do the products get imported right away or do I confirm it?”
Tell an agent
Start a product import from {file_key} with name {originalname}, size {size}, type {mime_type}.
Begin importing products from {file_key} ({originalname}, {size} bytes, {mime_type}).
POST /admin/products/imports/{transaction_id}/confirm Confirm a pending product import · Confirm Product Import #
Ask an LLM
“How do I let a created product import go ahead and load its products?”
“Is there a step after uploading a product file that actually begins the import?”
Tell an agent
Approve the pending import with transaction ID {transaction_id} so its products get loaded.
Go ahead and run the prepared import for transaction {transaction_id}.
GET /admin/products/{id} Get a product · Get a Product #
Ask an LLM
“How do I look up one product by its ID?”
“Can I fetch a product with its variants included?”
Tell an agent
Get product {id}.
Show product {id} with its variants.
POST /admin/products/{id} Update a product · Update a Product #
Ask an LLM
“How do I change a product's title or description?”
“Can I update a product's variants in place?”
Tell an agent
Update product {id} to have title {title}.
Set the variants of product {id} to {variants}.
DELETE /admin/products/{id} Delete a product · Delete a Product #
Ask an LLM
“How do I delete a product?”
“Can I remove a product from my store?”
Tell an agent destructive · confirm first
Delete product {id}.
Remove product {id} from the store.
POST /admin/products/{id}/images/{image_id}/variants/batch Add or remove variants from a product image · Manage Variants of Product Image #
Ask an LLM
“How do I make a product image show on certain variants?”
“Can I remove an image from some variants of a product?”
Tell an agent
Add image {image_id} to variants {add} of product {id}.
Remove image {image_id} from variants {remove} of product {id}.
GET /admin/products/{id}/options List a product's options · List a Product's Options #
Ask an LLM
“What options does a product have?”
“Can I list only the exclusive options of a product?”
Tell an agent
List the options of product {id}.
Show options of product {id} that are exclusive: {is_exclusive}.
POST /admin/products/{id}/options/batch Add or remove options from a product · Add Options to Product #
Ask an LLM
“How do I add new options to a product?”
“Can I remove options from a product in bulk?”
Tell an agent
Add options {add} to product {id}.
Remove options {remove} from product {id}.
GET /admin/products/{id}/variants List a product's variants · List Variants of a Product #
Ask an LLM
“How do I see all variants of a product?”
“Can I filter a product's variants by SKU or barcode?”
Tell an agent
List the variants of product {id}.
Show variants of product {id} with SKU {sku}.
POST /admin/products/{id}/variants Create a product variant · Create a Product Variant #
Ask an LLM
“How do I add a new variant to a product?”
“Can I set prices and options on a product variant when creating it?”
Tell an agent
Create variant {title} on product {id} with prices {prices}.
Add variant {title} to product {id} with options {options}.
POST /admin/products/{id}/variants/batch Create, update or delete product variants in bulk · Manage Variants in a Product #
Ask an LLM
“Can I create several variants of a product in one request?”
“Is there a bulk way to update or delete product variants?”
Tell an agent
Create these variants on product {id}: {create}.
Update and delete variants on product {id} with {update} and {delete}.
POST /admin/products/{id}/variants/inventory-items/batch Associate or deassociate variants with inventory items · Manage Variants Inventory in a Product #
Ask an LLM
“How do I link product variants to specific inventory items?”
“Can I update or unlink variant-inventory associations in bulk?”
Tell an agent
Associate variants of product {id} with inventory items {create}.
Update variant-inventory links on product {id} to {update}.
GET /admin/products/{id}/variants/{variant_id} Get a product variant · Get Variant of a Product #
Ask an LLM
“How do I look up one variant of a product?”
“Can I fetch a single product variant by its ID?”
Tell an agent
Get variant {variant_id} of product {id}.
Show product {id}'s variant {variant_id}.
POST /admin/products/{id}/variants/{variant_id} Update a product variant · Update a Product Variant #
Ask an LLM
“How do I change a product variant's SKU or prices?”
“Can I update a variant's options or inventory settings?”
Tell an agent
Update variant {variant_id} of product {id} to have SKU {sku}.
Set the prices of variant {variant_id} on product {id} to {prices}.
DELETE /admin/products/{id}/variants/{variant_id} Delete a product variant · Delete Product Variant #
Ask an LLM
“How do I remove a variant from a product?”
“Can I delete one variant without deleting the product?”
Tell an agent destructive · confirm first
Delete variant {variant_id} from product {id}.
Remove product variant {variant_id} on {id}.
POST /admin/products/{id}/variants/{variant_id}/images/batch Add or remove images on a product variant · Manage Images of Product Variant #
Ask an LLM
“How do I add images to a product variant?”
“Can I remove images from a variant without touching the product?”
Tell an agent
Add images {add} to variant {variant_id} of product {id}.
Remove images {remove} from product variant {variant_id} on {id}.
POST /admin/products/{id}/variants/{variant_id}/inventory-items Associate a variant with an inventory item · Associate Variant with Inventory Item #
Ask an LLM
“How do I link a product variant to an inventory item?”
“Can I set the quantity a variant is stocked in an inventory item?”
Tell an agent
Associate variant {variant_id} of product {id} with inventory item {inventory_item_id} holding {required_quantity} units.
Stock product variant {variant_id} on {id} at inventory item {inventory_item_id} with quantity {required_quantity}.
POST /admin/products/{id}/variants/{variant_id}/inventory-items/{inventory_item_id} Update a variant's inventory item · Update Product Variant's Inventory Details #
Ask an LLM
“How do I change the quantity on an inventory item that manages a variant?”
“Can I edit the inventory details of a product variant?”
Tell an agent
Update inventory item {inventory_item_id} on variant {variant_id} of product {id} to hold {required_quantity} units.
Change the stock quantity of product variant {variant_id} on {id} managed by inventory item {inventory_item_id} to {required_quantity}.
DELETE /admin/products/{id}/variants/{variant_id}/inventory-items/{inventory_item_id} Remove a variant's inventory item association · Remove Inventory Item Association with Product Variant #
Ask an LLM
“How do I unlink an inventory item from a product variant?”
“Can I detach stock tracking from a variant without deleting the inventory item?”
Tell an agent destructive · confirm first
Remove inventory item {inventory_item_id} from variant {variant_id} of product {id}.
Detach stock tracking item {inventory_item_id} from product variant {variant_id} on {id}.
GET /store/products List products · List Products #
Ask an LLM
“Which products are in my store?”
“Can I filter products by title, handle or collection?”
Tell an agent
List products matching {q}.
Show products in collection {collection_id}.
GET /store/products/{id} Get a product in the store · Get a Product #
Ask an LLM
“Can I fetch a storefront product and have its title translated for a locale?”
“Which locale are store product titles returned in if none is given?”
Tell an agent
Get store product {id} in locale {locale}.
Show storefront product {id} translated to {x-medusa-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-products-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-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Products API
  version: 2.19.0
  description: 'Operations tagged Products 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 (366 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-products-api-openapi.yml