AUTOXSPARE Docs
API reference

API reference

Endpoints, payload shapes, and the payment and shipping integrations.

The backend is Medusa v2.19, so the bulk of the API is Medusa's own — documented upstream at docs.medusajs.com. This reference covers what is specific to AUTOXSPARE: the routes added, the two providers written for Malaysia, and the environment they read.

Base URLs

EnvironmentURL
Backend APIhttps://api.autoxspare.com
Admin panelhttps://api.autoxspare.com/app
Storefronthttps://new.autoxspare.com

Authentication

Admin requests use a bearer token, not a cookie:

POST /auth/user/emailpass
Content-Type: application/json

{ "email": "you@example.com", "password": "..." }

Returns { "token": "<jwt>" }. Send it as Authorization: Bearer <jwt> on subsequent /admin/* requests.

GET /auth/user/providers lists the providers actually registered. Only emailpass is live; Google, Apple and Facebook are wired in medusa-config.ts but stay unregistered until their credentials are set.

Storefront requests use the publishable key header (x-publishable-api-key) as usual for Medusa.

On this page