CUSTOMER, ADMIN, or SUPER_ADMIN — and that role determines which endpoints you can call. Storefront endpoints are available to all authenticated users; admin endpoints require at least ADMIN; and sensitive operations such as role assignment, P&L reporting, coupon analytics, and the audit log require SUPER_ADMIN. Public catalog and category browsing requires no authentication at all.
Every new account created via
POST /auth/register starts with the CUSTOMER role. Elevation to ADMIN or SUPER_ADMIN must be performed by an existing SUPER_ADMIN account.Role Overview
CUSTOMER
Browse the catalog, manage your cart, place and track orders, write reviews, and update your profile and addresses.
ADMIN
Everything a CUSTOMER can do, plus full control over the product catalog, orders, customer accounts, review moderation, coupons, and dashboard statistics.
SUPER_ADMIN
Everything an ADMIN can do, plus role assignment, P&L reporting, coupon analytics, operating expenses, audit log access, and management of other admin accounts.
Checking Your Role
To check the role of the currently authenticated user, callGET /users/me. The response includes a role field in the data object.
The
role field is present in the responses of both GET /auth/session and GET /users/me. Use GET /auth/session for a lightweight check when you only need the session state and role without the full profile.Permission Errors
When an API call fails due to access control, the response status code tells you exactly why:403 Forbidden — Insufficient Role
403 Forbidden — Insufficient Role
The request was made with a valid session, but the authenticated account’s role does not have permission to access the endpoint. For example, a
CUSTOMER calling an admin endpoint or an ADMIN calling a SUPER_ADMIN-only endpoint.Resolution: Use an account with the required role, or contact a SUPER_ADMIN to elevate your role if appropriate.