Medusa Workflows Executions API

These API routes allow you to track workflow executions in your Medusa application. Depending on the workflow engine you use, executions may only be retained for a short while, or only until the Medusa application is restarted.

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/workflows-executions List workflow executions · List Workflows Executions #
Ask an LLM
“Which workflows have run in my Medusa store?”
“Can I filter workflow executions by state or creation date?”
Tell an agent
List workflow executions for workflow {workflow_id}.
Show workflow executions with state {state}.
GET /admin/workflows-executions/{id} Get a workflow execution · Get a Workflows Execution #
Ask an LLM
“What happened in one specific workflow execution?”
“Can I look up a workflow execution by its ID?”
Tell an agent
Get workflow execution {id}.
Show the details of workflow execution {id}.
POST /admin/workflows-executions/{workflow_id}/run Run a workflow · Execute a Workflow #
Ask an LLM
“How do I kick off a workflow from the admin API?”
“Can I pass input to a workflow when I run it?”
Tell an agent
Run workflow {workflow_id}.
Execute workflow {workflow_id} with input {input}.
POST /admin/workflows-executions/{workflow_id}/steps/failure Fail a step in a workflow execution · Fail a Step in a Workflow's Execution #
Ask an LLM
“A long-running workflow step failed; how do I mark it as such?”
“Can I set a step's response when it fails?”
Tell an agent
Mark step {step_id} of workflow {workflow_id} as failed in transaction {transaction_id}.
Fail step {step_id} in workflow {workflow_id} with response {response}.
POST /admin/workflows-executions/{workflow_id}/steps/success Succeed a step in a workflow execution · Succeed a Step in a Workflow's Execution #
Ask an LLM
“A long-running workflow step succeeded; how do I record that?”
“Can I set a step's response when it succeeds?”
Tell an agent
Mark step {step_id} of workflow {workflow_id} as successful in transaction {transaction_id}.
Succeed step {step_id} in workflow {workflow_id} with response {response}.
GET /admin/workflows-executions/{workflow_id}/subscribe Subscribe to a workflow's execution events · Subscribe to a Workflow's Execution #
Ask an LLM
“Can I get real-time updates about a workflow's steps and status?”
“Is there a stream of events for a workflow execution?”
Tell an agent
Subscribe to workflow {workflow_id}'s execution events.
Stream the steps and status of workflow {workflow_id}.
GET /admin/workflows-executions/{workflow_id}/{transaction_id} Get a workflow execution · Get Workflow Execution's Details #
Ask an LLM
“What steps and errors did a specific workflow execution go through?”
“Where can I see the details of one workflow run?”
Tell an agent
Get execution {transaction_id} of workflow {workflow_id}.
Show the steps taken in workflow {workflow_id} for transaction {transaction_id}.
GET /admin/workflows-executions/{workflow_id}/{transaction_id}/subscribe Subscribe to a workflow execution's events · Subscribe to Workflow Execution Events #
Ask an LLM
“Can I get real-time events for one workflow transaction?”
“What does the event stream for a workflow execution include?”
Tell an agent
Subscribe to events for workflow {workflow_id} transaction {transaction_id}.
Stream events of workflow {workflow_id} transaction {transaction_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-workflows-executions-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-workflows-executions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2.19.0
  title: Medusa Admin Workflows Executions API
  license:
    name: MIT
    url: https://github.com/medusajs/medusa/blob/develop/LICENSE
  description: 'These API routes allow you to track workflow executions in your Medusa application.


    Depending on the workflow engine you use, executions may only be retained for a short while, or only until the Medusa application is restarted.'
servers:
- url: http://localhost:9000
- url: https://api.medusajs.com
tags:


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