System Settings
GET https://leads.qreq.com/api/settings
curl --request GET \
--url 'https://leads.qreq.com/api/settings' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/settings' \
--header 'Authorization: Bearer {api_key}'
{
"success": true,
"message": "Settings retrieved successfully.",
"data": {
"timezone": "Asia/Karachi",
"language": "en",
"notifications": true,
"theme": "dark",
"updated_at": "2025-11-05T10:14:00.000000Z"
}
}
POST https://leads.qreq.com/api/settings
| Parameters | Details | Description |
|---|---|---|
| timezone | RequiredString | Timezone identifier (e.g., Asia/Karachi) |
| language | RequiredString | Language code (e.g., en) |
| notifications | OptionalBoolean | Enable or disable notifications |
| theme | OptionalString | Theme: light or dark |
curl --request POST \
--url 'https://leads.qreq.com/api/settings' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "timezone": "Asia/Karachi", "language": "en", "notifications": true, "theme": "dark" }'
--url 'https://leads.qreq.com/api/settings' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "timezone": "Asia/Karachi", "language": "en", "notifications": true, "theme": "dark" }'
{
"success": true,
"message": "Settings updated successfully.",
"data": {
"timezone": "Asia/Karachi",
"language": "en",
"notifications": true,
"theme": "dark",
"updated_at": "2025-11-05T10:14:00.000000Z"
}
}