Administrator Platform Settings API
Base URL: http://localhost:8000/api/v1
Prefix: /admins/platform-settings
Auth: Admin JWT authentication
Headers: Content-Type: application/json
1. Get Platform Settings
Returns the general platform configuration.
/admins/platform-settings/general/Auth: Required — Admin
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Platform settings retrieved successfully.",
"data": {
"settings": {
"name": "EstateHub",
"currency": "USD",
"language": "en",
"timezone": "America/Chicago",
"support_email": "support@example.com",
"updated_at": "2026-09-23T10:00:00Z"
}
}
}2. Update Platform Settings
Partially updates the general platform configuration.
/admins/platform-settings/general/Auth: Required — Admin
Headers
Authorization: Bearer {{access_token}}Request Body
{
"name": "EstateHub USA",
"currency": "USD",
"language": "en",
"timezone": "America/Chicago",
"support_email": "support@example.com"
}Success Example
{
"success": true,
"message": "Platform settings updated successfully.",
"data": {
"settings": {
"name": "EstateHub USA",
"currency": "USD",
"language": "en",
"timezone": "America/Chicago",
"support_email": "support@example.com",
"updated_at": "2026-09-23T10:15:00Z"
}
}
}Notes
-
Supported currencies:
USD,BDT,EUR,GBP. -
Supported languages:
en,bn,es,fr. -
updated_atis read-only.
3. Get Branding Settings
Returns platform branding configuration.
/admins/platform-settings/branding/Auth: Required — Admin
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Branding settings retrieved successfully.",
"data": {
"branding": {
"primary_color": "#2563EB",
"secondary_color": "#14B8A6",
"accent_color": "#F59E0B",
"logo_url": "",
"logo_upload_id": null,
"favicon_url": "",
"favicon_upload_id": null,
"hero_image_url": "",
"hero_image_upload_id": null,
"hero_title": "Find your next place to call home",
"hero_description": "Discover verified properties for buying and leasing with trusted sellers and guided support.",
"updated_at": "2026-09-23T10:20:00Z"
}
}
}4. Update Branding Settings
Partially updates platform branding.
/admins/platform-settings/branding/Auth: Required — Admin
Headers
Authorization: Bearer {{access_token}}Request Body
{
"primary_color": "#1D4ED8",
"secondary_color": "#0F766E",
"accent_color": "#D97706",
"hero_title": "Find Your Dream Property",
"hero_description": "Explore trusted properties across United States.",
"logo_upload_id": "8e4b7a43-6b1a-4d25-8f77-2e6c8b1f3a10"
}Success Example
{
"success": true,
"message": "Branding settings updated successfully.",
"data": {
"branding": {
"primary_color": "#1D4ED8",
"secondary_color": "#0F766E",
"accent_color": "#D97706",
"logo_url": "https://cdn.example.com/delivery/logo-token",
"logo_upload_id": "8e4b7a43-6b1a-4d25-8f77-2e6c8b1f3a10",
"favicon_url": "",
"favicon_upload_id": null,
"hero_image_url": "",
"hero_image_upload_id": null,
"hero_title": "Find Your Dream Property",
"hero_description": "Explore trusted properties across United States.",
"updated_at": "2026-09-23T10:25:00Z"
}
}
}Notes
-
Color fields must use six-digit hexadecimal values, such as
#2563EB. -
logo_upload_id,favicon_upload_id, andhero_image_upload_idmust reference valid uploads with purposebranding. -
The upload must belong to the authenticated admin.
-
Set an upload ID to attach an uploaded asset.
-
Set an upload ID to
nullto remove the attached asset. -
Direct URL fields are read-only and are ignored during updates.
-
Delivery URLs may be generated dynamically.
-
updated_atis read-only.
5. Get Commission Settings
Returns configured sale, rental, and reservation commission settings.
/admins/platform-settings/commission/Auth: Required — Admin
Headers
Authorization: Bearer {{access_token}}Success Example
{
"success": true,
"message": "Commission settings retrieved successfully.",
"data": {
"commission": {
"property_sale_rate": "2.00",
"rental_rate": "5.00",
"purchase_reservation_type": "percentage",
"purchase_reservation_value": "2.00",
"rental_reservation_type": "percentage",
"rental_reservation_value": "2.00",
"updated_at": "2026-09-23T10:30:00Z"
}
}
}6. Update Commission Settings
Partially updates commission settings.
/admins/platform-settings/commission/Auth: Required — Admin
Headers
Authorization: Bearer {{access_token}}Request Body
{
"property_sale_rate": "2.50",
"rental_rate": "6.00",
"purchase_reservation_type": "percentage",
"purchase_reservation_value": "2.00",
"rental_reservation_type": "fixed",
"rental_reservation_value": "500.00"
}Success Example
{
"success": true,
"message": "Commission settings updated successfully.",
"data": {
"commission": {
"property_sale_rate": "2.50",
"rental_rate": "6.00",
"purchase_reservation_type": "percentage",
"purchase_reservation_value": "2.00",
"rental_reservation_type": "fixed",
"rental_reservation_value": "500.00",
"updated_at": "2026-09-23T10:35:00Z"
}
}
}Notes
-
property_sale_rateandrental_rateare percentages between0and100. -
Reservation types are
percentageorfixed. -
Percentage reservation values cannot exceed
100. -
Reservation values must be greater than
0. -
updated_atis read-only.
Common authentication error:
{
"success": false,
"message": "Authentication credentials were not provided.",
"errors": {}
}Common permission error:
{
"success": false,
"message": "You do not have permission to perform this action.",
"errors": {}
}