Medusa Campaigns API

A campaign is a group of promotions that have the same conditions, such as start and end dates. These API routes allow admin users to manage campaigns, their conditions, and promotions that belong to them.

GitHub OpenAPI
Business capability
Discount & Promotion Management BC-440.30

Operations 6

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/campaigns List campaigns · List Campaigns #
Ask an LLM
“Which campaigns are running in my store?”
“Can I find a campaign by its identifier?”
Tell an agent
List all campaigns.
Find the campaign with identifier {campaign_identifier}.
POST /admin/campaigns Create a campaign · Create Campaign #
Ask an LLM
“How do I create a new campaign with a budget and dates?”
“Can I add promotions to a campaign when I create it?”
Tell an agent
Create campaign {name} with identifier {campaign_identifier}, budget {budget}, starting {starts_at} and ending {ends_at}.
Create campaign {name} described as {description}.
GET /admin/campaigns/{id} Get a campaign · Get a Campaign #
Ask an LLM
“What are the start and end dates of a campaign?”
“Can I look up a campaign by its ID?”
Tell an agent
Get campaign {id}.
Show the start and end dates of campaign {id}.
POST /admin/campaigns/{id} Update a campaign · Update a Campaign #
Ask an LLM
“How do I change the end date of an existing campaign?”
“Can I rename a campaign after it is created?”
Tell an agent
Set the end date of campaign {id} to {ends_at}.
Rename campaign {id} to {name}.
DELETE /admin/campaigns/{id} Delete a campaign · Delete a Campaign #
Ask an LLM
“How do I delete a campaign?”
“Are a campaign's promotions removed when I delete it?”
Tell an agent destructive · confirm first
Delete campaign {id}.
Remove the campaign {id} from the store.
POST /admin/campaigns/{id}/promotions Add or remove promotions from a campaign · Manage the Promotions of a Campaign #
Ask an LLM
“How do I add promotions to a campaign?”
“Can I take promotions out of a campaign?”
Tell an agent
Add promotions {add} to campaign {id}.
Remove promotions {remove} from campaign {id}.

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-campaigns-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-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.19.0
  title: Medusa Admin Campaigns API
  license:
    name: MIT
    url: https://github.com/medusajs/medusa/blob/develop/LICENSE
  description: 'A campaign is a group of promotions that have the same conditions, such as start and end dates.


    These API routes allow admin users to manage campaigns, their conditions, and promotions that belong to them.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


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