← All requests

GET /v1/admin/notifications

Status
200
Duration
41.4 ms
Started (UTC)
2026-12-06 08:10:17.185
Route
/v1/admin/notifications
Request ID
f1fd2d59-2c98-47b7-bb04-bae0a68fca6f
Subject
admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
IP
172.16.1.1
User agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36
Language
ar
Queries
6 (39.8 ms)
Cache hit / miss
0 / 0

Timeline

cache +0.0 ms 0.2 ms
error rec:session:029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966
[
  "get"
]
query +1.0 ms 5.4 ms
select `id`, `subject_type`, `subject_id`, `token_hash`, `ip`, `user_agent`, `created_at`, `last_used_at`, `expires_at`, `revoked_at`, `revoked_reason` from `sessions` where `sessions`.`token_hash` = '029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966'

Parameters

[
  "029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966"
]

1 rows

cache +5.8 ms 0.2 ms
error rec:session:029101f5a63b97400cd2fd57226988e387995d984db668edcc326396b7e37966
[
  "set"
]
cache +7.0 ms 0.0 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "get"
]
query +8.0 ms 2.4 ms
select `admins`.`id`, `admins`.`name`, `admins`.`mobile`, `admins`.`email`, `admins`.`password_hash`, `admins`.`role_id`, `admins`.`status`, `admins`.`language`, `admins`.`theme`, `admins`.`avatar_file_id`, `admins`.`disabled_reason`, `admins`.`last_sign_in_at`, `admins`.`sign_in_count`, `admins`.`created_at`, `admins`.`updated_at`, `admins`.`deleted_at`, `roles`.`id`, `roles`.`name_ar`, `roles`.`name_en`, `roles`.`permissions`, `roles`.`status`, `roles`.`is_system`, `roles`.`created_at`, `roles`.`updated_at` from `admins` inner join `roles` on `roles`.`id` = `admins`.`role_id` where (`admins`.`id` = '01a130d6-8161-7068-92f2-3f4b06b4ad11' and `admins`.`deleted_at` is null)

Parameters

[
  "01a130d6-8161-7068-92f2-3f4b06b4ad11"
]

1 rows

cache +10.9 ms 0.1 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "set"
]
query +15.0 ms 11.3 ms
select count(*) from `notifications` where (`notifications`.`recipient_type` = 'admin' and `notifications`.`recipient_id` = '01a130d6-8161-7068-92f2-3f4b06b4ad11')

Parameters

[
  "admin",
  "01a130d6-8161-7068-92f2-3f4b06b4ad11"
]

1 rows

query +16.0 ms 13.7 ms
select `id`, `recipient_type`, `recipient_id`, `type`, `title_ar`, `title_en`, `body_ar`, `body_en`, `target_type`, `target_id`, `collapse_key`, `read_at`, `created_at`, `updated_at` from `notifications` where (`notifications`.`recipient_type` = 'admin' and `notifications`.`recipient_id` = '01a130d6-8161-7068-92f2-3f4b06b4ad11') order by `notifications`.`created_at` desc, `notifications`.`id` desc limit 10

Parameters

[
  "admin",
  "01a130d6-8161-7068-92f2-3f4b06b4ad11",
  10
]

10 rows

query +33.0 ms 5.0 ms
select `id` from `contact_messages` where `contact_messages`.`id` in ('01a19b5b-f8a1-74bb-8eb1-3896166ad9f3', '01a19b51-e90c-771d-8a6a-f723a3f42a2f', '01a159a6-18c4-74de-b9fc-1e08e83e5fbc')

Parameters

[
  "01a19b5b-f8a1-74bb-8eb1-3896166ad9f3",
  "01a19b51-e90c-771d-8a6a-f723a3f42a2f",
  "01a159a6-18c4-74de-b9fc-1e08e83e5fbc"
]

3 rows

query +33.0 ms 2.0 ms
select `id` from `listings` where (`listings`.`id` in ('01a15dca-7432-778f-8a80-fdba3fee89c4', '01a15db8-f85a-73a7-87ee-f5605ef637e3') and `listings`.`status` <> 'deleted')

Parameters

[
  "01a15dca-7432-778f-8a80-fdba3fee89c4",
  "01a15db8-f85a-73a7-87ee-f5605ef637e3",
  "deleted"
]

0 rows

Request

Headers
{
  "host": "maqsed-api.dev-moltaqa.cloud",
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36",
  "accept": "application/json, text/plain, */*",
  "accept-encoding": "gzip, deflate, br, zstd",
  "accept-language": "ar",
  "authorization": "********",
  "cookie": "********",
  "locale": "ar",
  "priority": "u=1, i",
  "referer": "https://maqsed-dashboard.dev-moltaqa.cloud/ar/inbox",
  "sec-ch-ua": "\"Chromium\";v=\"158\", \"Not.A/Brand\";v=\"24\", \"Google Chrome\";v=\"158\"",
  "sec-ch-ua-mobile": "?0",
  "sec-ch-ua-platform": "\"Windows\"",
  "sec-fetch-dest": "empty",
  "sec-fetch-mode": "cors",
  "sec-fetch-site": "same-origin",
  "x-forwarded-for": "172.16.1.1",
  "x-forwarded-host": "maqsed-api.dev-moltaqa.cloud",
  "x-forwarded-port": "443",
  "x-forwarded-proto": "https",
  "x-forwarded-server": "7eb0077cd3f4",
  "x-real-ip": "172.16.1.1"
}
Query
{
  "page": "1",
  "limit": "10"
}

Response

Body
{
  "items": [
    {
      "id": "01a19b5b-f8b4-74f2-8460-72129ea758e3",
      "type": "admin_contact_message",
      "group": "message",
      "title": "رسالة تواصل جديدة",
      "body": "⁨سارة العتيبي⁩: ⁨كيف أرقّي إعلاني ليظهر في الإعلانات المميزة؟⁩",
      "target": {
        "type": "contact_message",
        "id": "01a19b5b-f8a1-74bb-8eb1-3896166ad9f3",
        "available": true
      },
      "read": true,
      "createdAt": "2026-11-02T08:24:18.356Z"
    },
    {
      "id": "01a19b51-e921-7483-b2e1-f02f2d4be961",
      "type": "admin_contact_message",
      "group": "message",
      "title": "رسالة تواصل جديدة",
      "body": "⁨سارة العتيبي⁩: ⁨كيف أرقّي إعلاني ليظهر في الإعلانات المميزة؟⁩",
      "target": {
        "type": "contact_message",
        "id": "01a19b51-e90c-771d-8a6a-f723a3f42a2f",
        "available": true
      },
      "read": true,
      "createdAt": "2026-11-02T08:13:19.008Z"
    },
    {
      "id": "01a162f8-d438-72e9-acf4-5fcdab2677e2",
      "type": "admin_listing_auto_hidden",
      "group": "listing",
      "title": "إعلان أُخفي بسبب البلاغات",
      "body": "أُخفي الإعلان \"⁨video⁩\" (⁨MQ-00032⁩) بعد أن بلغ ⁨1⁩ بلاغات.",
      "target": {
        "type": "listing",
        "id": "01a15dca-7432-778f-8a80-fdba3fee89c4",
        "available": false
      },
      "read": true,
      "createdAt": "2026-10-22T09:37:16.856Z"
    },
    {
      "id": "01a162f8-d412-75e8-b955-c2487957b636",
      "type": "admin_listing_auto_hidden",
      "group": "listing",
      "title": "إعلان أُخفي بسبب البلاغات",
      "body": "أُخفي الإعلان \"⁨screen33⁩\" (⁨MQ-00031⁩) بعد أن بلغ ⁨1⁩ بلاغات.",
      "target": {
        "type": "listing",
        "id": "01a15db8-f85a-73a7-87ee-f5605ef637e3",
        "available": false
      },
      "read": true,
      "createdAt": "2026-10-22T09:37:16.818Z"
    },
    {
      "id": "01a162b0-507d-72d7-80ac-df8b8f5ce1a4",
      "type": "admin_advertiser_deleted",
      "group": "account",
      "title": "معلن حذف حسابه",
      "body": "حذف ⁨Provider⁩ حسابه.",
      "target": null,
      "read": true,
      "createdAt": "2026-10-22T08:18:04.541Z"
    },
    {
      "id": "01a162aa-e9a9-71ab-bfbe-050b84f65ce4",
      "type": "admin_advertiser_deleted",
      "group": "account",
      "title": "معلن حذف حسابه",
      "body": "حذف ⁨Sdfgfg⁩ حسابه.",
      "target": null,
      "read": true,
      "createdAt": "2026-10-22T08:12:10.537Z"
    },
    {
      "id": "01a15dbe-e388-7125-a222-a2a9cb72d7de",
      "type": "admin_advertiser_deleted",
      "group": "account",
      "title": "معلن حذف حسابه",
      "body": "حذف ⁨Testtt nafath⁩ حسابه.",
      "target": null,
      "read": true,
      "createdAt": "2026-10-21T09:15:53.608Z"
    },
    {
      "id": "01a15aa4-5b78-77f8-8e9b-2888e094045f",
      "type": "admin_advertiser_deleted",
      "group": "account",
      "title": "معلن حذف حسابه",
      "body": "حذف ⁨Test user⁩ حسابه.",
      "target": null,
      "read": true,
      "createdAt": "2026-10-20T18:48:03.192Z"
    },
    {
      "id": "01a159a6-18d1-74d8-bad8-d892713315da",
      "type": "admin_contact_message",
      "group": "message",
      "title": "رسالة تواصل جديدة",
      "body": "⁨Fatema Elnaggar⁩: ⁨testtt testtt testtt tessst testttt testtt tesssttt⁩",
      "target": {
        "type": "contact_message",
        "id": "01a159a6-18c4-74de-b9fc-1e08e83e5fbc",
        "available": true
      },
      "read": true,
      "createdAt": "2026-10-20T14:10:19.985Z"
    },
    {
      "id": "01a15911-266a-7443-ab85-6a9faed6937e",
      "type": "admin_advertiser_deleted",
      "group": "account",
      "title": "معلن حذف حسابه",
      "body": "حذف ⁨ظةةظةظاظ⁩ حسابه.",
      "target": null,
      "read": true,
      "createdAt": "2026-10-20T11:27:38.602Z"
    }
  ],
  "page": 1,
  "limit": 10,
  "total": 20
}