Medusa Auth API

Auth API routes allow you to manage an admin user's authentication.

GitHub OpenAPI

Operations 19

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

DELETE /auth/mfa/factors/{id} Disable a user's MFA factor · Disable a Multi-Factor Authentication (MFA) Factor #
Ask an LLM
“How do I turn off a multi-factor authentication factor for a user?”
“Can I disable a recovery-code MFA factor?”
Tell an agent destructive · confirm first
Disable MFA factor {id}.
Disable MFA factor {id} using {method} code {code}.
POST /auth/session Set an admin session cookie · Set Authentication Session #
Ask an LLM
“How do I set the admin session cookie after authenticating with a provider?”
“What's needed to start an admin session?”
Tell an agent
Set the admin session cookie.
Start an admin session using the previously issued JWT.
DELETE /auth/session Delete the admin session cookie · Delete Authentication Session #
Ask an LLM
“How do I clear the admin session cookie?”
“Can I end an admin session by deleting its cookie?”
Tell an agent destructive · confirm first
Delete the admin session cookie.
End the current admin session.
POST /auth/token/refresh Refresh an admin authentication token · Refresh Authentication Token #
Ask an LLM
“How do I refresh an admin user's token after third-party login?”
“Can I keep an admin logged in without re-authenticating daily?”
Tell an agent
Refresh the admin authentication token.
Issue a new admin token after third-party authentication.
GET /auth/user/providers List admin authentication providers · List Auth Providers for Admin Users #
Ask an LLM
“Which authentication providers are available to admin users?”
“What login options can an admin choose from?”
Tell an agent
List the auth providers for admin users.
Show admin authentication options.
POST /auth/user/{auth_provider} Authenticate an admin with a provider · Authenticate User #
Ask an LLM
“How do I authenticate an admin user with Google or another provider?”
“Does admin login with a third-party provider return a redirect URL?”
Tell an agent
Authenticate admin user {auth_provider}.
Start admin login with {auth_provider} and return the redirect location.
POST /auth/user/{auth_provider}/callback Complete admin login from a provider callback · Validate Authentication Callback #
Ask an LLM
“How do I finish an admin login after a third-party provider redirects back?”
“What happens to the code and state passed from the provider callback?”
Tell an agent
Complete admin login with {auth_provider} using the provider callback.
Validate the {auth_provider} callback and return an admin token.
POST /auth/user/{auth_provider}/register Get a registration token for an admin · Retrieve Registration JWT Token #
Ask an LLM
“How do I get a registration JWT token for an admin user?”
“What token do I need to create an admin user?”
Tell an agent
Get a registration token for admin {auth_provider}.
Retrieve the admin registration JWT for {auth_provider}.
POST /auth/user/{auth_provider}/reset-password Generate an admin password reset token · Generate Reset Password Token for Admin User #
Ask an LLM
“How do I generate a password reset token for an admin?”
“Does the admin reset token also send a notification?”
Tell an agent
Generate an admin password reset token for {identifier} with {auth_provider}.
Emit an admin reset token for {identifier} using {auth_provider}.
POST /auth/user/{auth_provider}/update Reset an admin user's password with a reset token · Reset an Admin User's Password #
Ask an LLM
“How do I reset an admin user's password with a reset token?”
“Can I reset an admin password when the login provider is email?”
Tell an agent
Reset the admin user's password for provider {auth_provider} using a reset token.
Set the admin password for auth provider {auth_provider} with a reset token.
POST /auth/customer/emailpass/verification/confirm Verify a customer's email · Verify the Customer's Email #
Ask an LLM
“How do I confirm a customer's email with the verification token?”
“Can I verify a customer's email address using a token sent to them?”
Tell an agent
Verify the customer's email with token {token}.
Confirm customer registration using verification token {token}.
GET /auth/customer/providers List customer authentication providers · List Auth Providers for Customers #
Ask an LLM
“Which login options are available to customers?”
“What auth providers can a shopper choose from?”
Tell an agent
List the auth providers for customers.
Show customer authentication options.
POST /auth/customer/{auth_provider} Authenticate a customer with a provider · Authenticate Customer #
Ask an LLM
“How do I authenticate a customer with Google or another provider?”
“Does customer login with a third-party provider return a redirect URL?”
Tell an agent
Authenticate customer {auth_provider}.
Start customer login with {auth_provider} and return the redirect location.
POST /auth/customer/{auth_provider}/callback Complete a third-party login callback · Validate Authentication Callback #
Ask an LLM
“How does the storefront finish OAuth after the third-party redirects back?”
“What do I check in the callback when the customer logs in with a third-party provider?”
Tell an agent
Call the {auth_provider} login callback with the third-party redirect parameters to get an auth token.
Complete the {auth_provider} login callback for my storefront.
POST /auth/customer/{auth_provider}/register Get a registration token for a customer · Retrieve Registration JWT Token #
Ask an LLM
“How do I get a registration JWT token for a customer?”
“What token do I need to create a customer?”
Tell an agent
Get a registration token for customer {auth_provider}.
Retrieve the customer registration JWT for {auth_provider}.
POST /auth/customer/{auth_provider}/reset-password Generate a customer password reset token · Generate Reset Password Token for Customer #
Ask an LLM
“How do I generate a password reset token for a customer?”
“Does the customer reset token also send a notification?”
Tell an agent
Generate a customer password reset token for {identifier} with {auth_provider}.
Emit a customer reset token for {identifier} using {auth_provider}.
POST /auth/customer/{auth_provider}/update Reset a customer's password with a reset token · Reset a Customer's Password #
Ask an LLM
“Can a customer reset their own password using a reset token?”
“What does resetting a customer's password with a reset token require?”
Tell an agent
Reset the customer's password for provider {auth_provider} using a reset token.
Set the customer password for auth provider {auth_provider} with a reset token.
POST /auth/verification/confirm Confirm a customer verification code · Confirm Customer Verification #
Ask an LLM
“How do I confirm a customer verification code like an OTP?”
“Can I verify a customer's phone number with a code?”
Tell an agent
Confirm customer verification code {code}.
Verify customer {code} using {code_provider}.
POST /auth/verification/request Request a customer verification code · Request Customer Verification #
Ask an LLM
“How do I request a verification code for a customer?”
“Can I send a verification request for a customer's email or phone?”
Tell an agent
Request verification for {entity_type} {entity_id} with {code_provider}.
Send a verification request to {entity_id} of type {entity_type} via {code_provider}.

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-auth-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-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Medusa Auth API
  version: 2.19.0
  description: 'Operations tagged Auth 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 (68 KB total) ---
# Full source: https://artifacts.apis.io/medusa/openapi/medusa-auth-api-openapi.yml