FreeFireBD API Documentation

API Base URL: https://api.freefirebd.com/api/

🔐 Authentication

🧑 User API

Method Endpoint Description Auth
POST register āύāϤ⧁āύ āχāωāϜāĻžāϰ āϰ⧇āϜāĻŋāĻ¸ā§āĻŸā§āϰ⧇āĻļāύ ❌
POST login āχāωāϜāĻžāϰ āϞāĻ—āχāύ (email/username/mobile + password) ❌
POST forgot-password āĻĢāϰāϗ⧇āϟ āĻĒāĻžāϏāĻ“ā§ŸāĻžāĻ°ā§āĻĄ (email) ❌
POST reset-password āϰāĻŋāϏ⧇āϟ āĻĒāĻžāϏāĻ“ā§ŸāĻžāĻ°ā§āĻĄ (email + token + new password) ❌
POST logout āϞāĻ—āφāωāϟ ✅
GET profile āχāωāϜāĻžāϰ āĻĒā§āϰ⧋āĻĢāĻžāχāϞ āĻĻ⧇āĻ–āĻžāĻŦ⧇ ✅
PUT profile āχāωāϜāĻžāϰ āύāĻŋāĻœā§‡āϰ āĻĒā§āϰ⧋āĻĢāĻžāχāϞ āφāĻĒāĻĄā§‡āϟ āĻ•āϰāĻŦ⧇ ✅
PUT profile/password āĻĒāĻžāϏāĻ“ā§ŸāĻžāĻ°ā§āĻĄ āĻšā§‡āĻžā§āϜ ✅

🛒 Product API

Method Endpoint Description Auth
GET products āϏāĻ•āϞ āĻĒā§āϰ⧋āĻĄāĻžāĻ•ā§āϟ (active list) ✅
GET products/{id} āĻĒā§āϰ⧋āĻĄāĻžāĻ•ā§āĻŸā§‡āϰ āĻŦāĻŋāĻ¸ā§āϤāĻžāϰāĻŋāϤ ✅
POST products āύāϤ⧁āύ āĻĒā§āϰ⧋āĻĄāĻžāĻ•ā§āϟ add (admin only) ✅
PUT/PATCH products/{id} āĻĒā§āϰ⧋āĻĄāĻžāĻ•ā§āϟ āφāĻĒāĻĄā§‡āϟ (admin only) ✅
DELETE products/{id} āĻĒā§āϰ⧋āĻĄāĻžāĻ•ā§āϟ āĻĄāĻŋāϞāĻŋāϟ (admin only) ✅

đŸ“Ļ Order API

Method Endpoint Description Auth
POST orders āύāϤ⧁āύ āĻ…āĻ°ā§āĻĄāĻžāϰ (order place) ✅
GET orders āύāĻŋāĻœā§‡āϰ āϏāĻŦ āĻ…āĻ°ā§āĻĄāĻžāϰ ✅
GET orders/{id} āύāĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āϟ āĻ…āĻ°ā§āĻĄāĻžāϰ ✅
PUT/PATCH orders/{id} āĻ…āĻ°ā§āĻĄāĻžāϰ āφāĻĒāĻĄā§‡āϟ/āĻ¸ā§āĻŸā§āϝāĻžāϟāĻžāϏ (admin/user) ✅
DELETE orders/{id} āĻ…āĻ°ā§āĻĄāĻžāϰ āĻĄāĻŋāϞāĻŋāϟ ✅
GET admin/orders āϏāĻŦ āĻ…āĻ°ā§āĻĄāĻžāϰ (admin only) ✅

📋 Example Request

Sample registration (curl):

curl -X POST https://api.freefirebd.com/api/register \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","mobile":"01700000000","username":"testuser","password":"123456","password_confirmation":"123456"}'

Authenticated request (Bearer Token):

curl -H "Authorization: Bearer <token>" https://api.freefirebd.com/api/profile

Designed for FreeFireBD by Mubaly Team. Dark Mode enabled 🌙