Documentation Index
Fetch the complete documentation index at: https://docs.rmz.gg/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
RMZ uses different authentication methods depending on the API you are calling. This page covers all patterns.Merchant API — Bearer Token
The Merchant API uses Laravel Sanctum tokens. You generate a token from your dashboard and include it in every request.Getting a Token
- Go to Settings > API Keys in your dashboard
- Click Generate Token
- Copy and store the token securely
Example Request
Invalid Token Response
Storefront API — OTP Authentication
The Storefront API authenticates customers (not merchants) using a phone/email OTP flow. This is a three-step process.Step 1: Start Authentication
Send the customer’s phone number to begin the OTP flow:Step 2: Verify OTP
Submit the OTP code the customer received:Step 3: Complete Registration (New Customers)
Using the Token
Once authenticated, include the token in subsequent requests:Guest Cart
Unauthenticated users can still manage a cart using theX-Cart-Token header. See Guest Cart for details.
Embed API — Embed Key
The Embed API uses anX-Embed-Key header for authentication. The embed key is tied to a specific product and store.
License API — No Auth Header
The License Verification API does not use authentication headers. Instead, theproduct_id in the request body identifies the product, and the license_key is the credential being verified.
Supported Country Codes
OTP authentication in the Storefront API supports these country codes:| Code | Country |
|---|---|
| 966 | Saudi Arabia |
| 973 | Bahrain |
| 971 | UAE |
| 974 | Qatar |
| 968 | Oman |
| 965 | Kuwait |

