Merchant API

The merchant dashboard is a client of the same API. Everything under https://api.ebda.app/api/v1 that is not /public/* needs a signed-in user (see Authentication) and is scoped to the stores that user may access.

Account

MethodPathNotes
POST/auth/registerCreate an account (also used by the self-serve signup form)
POST/auth/loginSign in; sets the access and refresh cookies
POST/auth/refreshNew access token from the refresh cookie
POST/auth/logoutEnd the session
GET/auth/meCurrent user
GET/auth/me/exportExport your own data

New merchants verify their email before onboarding: the link is single use and valid for 24 hours (POST /auth/verify-email).

Multi-factor authentication

MethodPathNotes
POST/auth/mfa/enroll/beginStart TOTP enrolment; returns the secret
POST/auth/mfa/verifyVerify a 6-digit TOTP code, or a one-time backup code
POST/auth/mfa/disableTurn MFA off (requires a valid code)

Completing enrolment returns one-time backup codes. They are shown once.

Merchant admin MCP

POST /api/v1/mcp/admin/:storeSlug speaks the Model Context Protocol so that scripts and AI assistants can read and operate one store. It requires an x-merchant-key and the scopes your key was minted with. See Authentication for minting and revoking keys.