← All requests

GET /v1/admin/broadcasts

Status
200
Duration
24.1 ms
Started (UTC)
2026-12-06 08:11:28.484
Route
/v1/admin/broadcasts
Request ID
1c6b21ac-0ca0-49a5-b0f0-715a8f424597
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
4 (34.8 ms)
Cache hit / miss
0 / 0

Timeline

cache +0.0 ms 0.2 ms
error rec:session:bd416628d786dd4e9572b20cc4209f0b2a4b14c78d4a5aaee8ffc31ec520ca7c
[
  "get"
]
query +1.0 ms 0.7 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` = 'bd416628d786dd4e9572b20cc4209f0b2a4b14c78d4a5aaee8ffc31ec520ca7c'

Parameters

[
  "bd416628d786dd4e9572b20cc4209f0b2a4b14c78d4a5aaee8ffc31ec520ca7c"
]

1 rows

cache +1.8 ms 0.2 ms
error rec:session:bd416628d786dd4e9572b20cc4209f0b2a4b14c78d4a5aaee8ffc31ec520ca7c
[
  "set"
]
cache +2.0 ms 0.0 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "get"
]
query +2.0 ms 0.5 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 +2.9 ms 0.1 ms
error rec:subject:admin:01a130d6-8161-7068-92f2-3f4b06b4ad11
[
  "set"
]
query +5.0 ms 16.3 ms
select `broadcasts`.`id`, `broadcasts`.`title_ar`, `broadcasts`.`title_en`, `broadcasts`.`body_ar`, `broadcasts`.`body_en`, `broadcasts`.`audience`, `broadcasts`.`target_type`, `broadcasts`.`target_id`, `broadcasts`.`status`, `broadcasts`.`recipient_count`, `broadcasts`.`sent_count`, `broadcasts`.`push_sent`, `broadcasts`.`push_failed`, `broadcasts`.`created_by`, `broadcasts`.`created_at`, `broadcasts`.`sent_at`, `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` from `broadcasts` left join `admins` on `admins`.`id` = `broadcasts`.`created_by` order by `broadcasts`.`created_at` desc, `broadcasts`.`id` desc limit 20

Parameters

[
  20
]

19 rows

query +5.0 ms 17.3 ms
select count(*) from `broadcasts`

1 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": "********",
  "cache-control": "no-cache",
  "cookie": "********",
  "locale": "ar",
  "pragma": "no-cache",
  "priority": "u=1, i",
  "referer": "https://maqsed-dashboard.dev-moltaqa.cloud/ar/notifications",
  "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": "20"
}

Response

Body
{
  "items": [
    {
      "id": "01a16f9c-0422-71c0-aa26-832932a691a7",
      "title": "Commodi distinctio Et quas et duis dolore placeat facilis sint in maxime quis ut",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 15,
      "sentCount": 15,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-24T20:30:58.083Z",
      "sentAt": "2026-10-24T20:30:58.246Z"
    },
    {
      "id": "01a16392-4bb9-770c-8e00-f222cdbe1edb",
      "title": "Commodi ratione dolorem laboris totam iure corrupti sint vitae deserunt atque officia voluptates ne",
      "audience": "advertisers",
      "link": {
        "type": "package_list",
        "id": "01a162e4-a0fd-778e-81ac-6a24ac89062c"
      },
      "status": "sent",
      "recipientCount": 12,
      "sentCount": 12,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T12:24:54.458Z",
      "sentAt": "2026-10-22T12:24:55.067Z"
    },
    {
      "id": "01a1638d-3687-7403-81b3-b67b5a46acd2",
      "title": "Culpa cillum perspiciatis ut quibusdam",
      "audience": "customers",
      "link": {
        "type": "category",
        "id": "01a12b3b-48fb-7771-b5f3-425aea13cff6"
      },
      "status": "sent",
      "recipientCount": 15,
      "sentCount": 15,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T12:19:21.354Z",
      "sentAt": "2026-10-22T12:19:21.943Z"
    },
    {
      "id": "01a1638c-bf56-73e5-9e46-5a62b0ff2a17",
      "title": "Commodi ratione dolorem laboris totam iure corrupti sint vitae deserunt atque officia voluptates ne",
      "audience": "selected",
      "link": {
        "type": "package_list",
        "id": null
      },
      "status": "sent",
      "recipientCount": 2,
      "sentCount": 2,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T12:18:50.840Z",
      "sentAt": "2026-10-22T12:18:52.041Z"
    },
    {
      "id": "01a1636b-0b27-71bc-ba49-b27cadf1e70e",
      "title": "عنوان الإشعار (عربي)",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T11:42:02.027Z",
      "sentAt": "2026-10-22T11:42:02.854Z"
    },
    {
      "id": "01a16369-f628-737b-87b0-a9bc3e6c4b19",
      "title": "فاطيما",
      "audience": "selected",
      "link": {
        "type": "listing",
        "id": "01a12b3b-49e7-7246-a41e-2ce4256c79db"
      },
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T11:40:51.113Z",
      "sentAt": "2026-10-22T11:40:51.164Z"
    },
    {
      "id": "01a16369-03e0-7112-8c61-92846d337879",
      "title": "الكل",
      "audience": "everyone",
      "link": null,
      "status": "sent",
      "recipientCount": 27,
      "sentCount": 27,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T11:39:49.089Z",
      "sentAt": "2026-10-22T11:39:49.181Z"
    },
    {
      "id": "01a16368-0cbe-74b5-aa78-3474f6990157",
      "title": "اشعار منشأه @+44",
      "audience": "establishment_advertisers",
      "link": null,
      "status": "sent",
      "recipientCount": 6,
      "sentCount": 6,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T11:38:45.823Z",
      "sentAt": "2026-10-22T11:38:45.953Z"
    },
    {
      "id": "01a16365-75d3-72b7-b751-db0ad58b8961",
      "title": "كل المعلنون",
      "audience": "advertisers",
      "link": null,
      "status": "sent",
      "recipientCount": 12,
      "sentCount": 12,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T11:35:56.116Z",
      "sentAt": "2026-10-22T11:35:56.207Z"
    },
    {
      "id": "01a1635d-4ba3-71da-9e1c-4c2c78e5432e",
      "title": "اشعار معلن افراد",
      "audience": "individual_advertisers",
      "link": null,
      "status": "sent",
      "recipientCount": 6,
      "sentCount": 6,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-22T11:27:01.030Z",
      "sentAt": "2026-10-22T11:27:01.176Z"
    },
    {
      "id": "01a15d67-f1f6-757b-9552-fbd4f1608d7b",
      "title": "Rem amet eu laudantium et",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 5,
      "sentCount": 5,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-21T07:40:55.671Z",
      "sentAt": "2026-10-21T07:40:55.737Z"
    },
    {
      "id": "01a15d67-3106-77dc-a39f-09ea66fdb443",
      "title": "Dolor exercitation nobis autem cupidatat quos ex",
      "audience": "everyone",
      "link": null,
      "status": "sent",
      "recipientCount": 30,
      "sentCount": 30,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-21T07:40:06.279Z",
      "sentAt": "2026-10-21T07:40:06.371Z"
    },
    {
      "id": "01a15d66-4ca3-76fc-8269-07fe60c9e464",
      "title": "Ut beatae dolore voluptas odit necessitatibus ea eu esse occaecat cumque aut",
      "audience": "selected",
      "link": {
        "type": "listing",
        "id": "01a158c0-d078-717a-b710-4ac74f36cbc0"
      },
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-21T07:39:07.811Z",
      "sentAt": "2026-10-21T07:39:07.850Z"
    },
    {
      "id": "01a15d49-be6e-7613-83af-1391327fa394",
      "title": "عروض نهاية الأسبوع",
      "audience": "customers",
      "link": null,
      "status": "sent",
      "recipientCount": 16,
      "sentCount": 16,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-21T07:07:56.399Z",
      "sentAt": "2026-10-21T07:07:56.466Z"
    },
    {
      "id": "01a15d48-28a2-7478-90b6-38e6f31db3bd",
      "title": "عروض نهاية الأسبوع",
      "audience": "customers",
      "link": {
        "type": "listing",
        "id": "01a158c0-d078-717a-b710-4ac74f36cbc0"
      },
      "status": "sent",
      "recipientCount": 16,
      "sentCount": 16,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-21T07:06:12.517Z",
      "sentAt": "2026-10-21T07:06:12.628Z"
    },
    {
      "id": "01a15d41-9f0c-774c-ba2e-3de0fb6a8516",
      "title": "عروض نهاية الأسبوع",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-21T06:59:04.077Z",
      "sentAt": "2026-10-21T06:59:04.167Z"
    },
    {
      "id": "01a14f9a-7e13-7540-a7fe-d95b3890d2f2",
      "title": "إشعار تجريبي 336632",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-18T15:21:27.315Z",
      "sentAt": "2026-10-18T15:21:27.366Z"
    },
    {
      "id": "01a14f98-e8ef-729c-815f-934369344ac6",
      "title": "إشعار تجريبي 271848",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-18T15:19:43.600Z",
      "sentAt": "2026-10-18T15:19:43.679Z"
    },
    {
      "id": "01a135aa-86bf-72ce-8074-f1e28946b8c2",
      "title": "إشعار تجريبي 142776",
      "audience": "selected",
      "link": null,
      "status": "sent",
      "recipientCount": 1,
      "sentCount": 1,
      "pushSent": 0,
      "pushFailed": 0,
      "sender": {
        "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
        "name": "مدير النظام"
      },
      "createdAt": "2026-10-13T14:28:50.495Z",
      "sentAt": "2026-10-13T14:28:50.681Z"
    }
  ],
  "page": 1,
  "limit": 20,
  "total": 19
}