← All requests

POST /v1/admin/auth/login

Status
200
Duration
79.2 ms
Started (UTC)
2026-12-06 08:18:03.513
Route
/v1/admin/auth/login
Request ID
cf5d1391-459a-45b3-a17f-4bf75c1326da
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 (14.6 ms)
Cache hit / miss
0 / 0

Timeline

query +3.0 ms 4.1 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`.`mobile` = '+966500000001' and `admins`.`deleted_at` is null)

Parameters

[
  "+966500000001"
]

1 rows

query +65.0 ms 0.8 ms
begin

0 rows

query +66.0 ms 2.7 ms
update `admins` set `last_sign_in_at` = '2026-12-06 08:18:03.577', `sign_in_count` = `admins`.`sign_in_count` + 1, `updated_at` = '2026-12-06 08:18:03.579' where `admins`.`id` = '01a130d6-8161-7068-92f2-3f4b06b4ad11'

Parameters

[
  "2026-12-06 08:18:03.577",
  "2026-12-06 08:18:03.579",
  "01a130d6-8161-7068-92f2-3f4b06b4ad11"
]

1 rows

query +70.0 ms 2.4 ms
insert into `sessions` (`id`, `subject_type`, `subject_id`, `token_hash`, `ip`, `user_agent`, `created_at`, `last_used_at`, `expires_at`, `revoked_at`, `revoked_reason`) values ('01a24a6e-78be-73e8-a4bb-1dcce7f4cf81', 'admin', '01a130d6-8161-7068-92f2-3f4b06b4ad11', '14560caed51bfd15256b8f746b3d2617d79820a0cf1b0c9aa571673df2bc617f', '172.16.1.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36', '2026-12-06 08:18:03.582', '2026-12-06 08:18:03.582', '2026-12-13 08:18:03.582', NULL, NULL)

Parameters

[
  "01a24a6e-78be-73e8-a4bb-1dcce7f4cf81",
  "admin",
  "01a130d6-8161-7068-92f2-3f4b06b4ad11",
  "14560caed51bfd15256b8f746b3d2617d79820a0cf1b0c9aa571673df2bc617f",
  "172.16.1.1",
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36",
  "2026-12-06 08:18:03.582",
  "2026-12-06 08:18:03.582",
  "2026-12-13 08:18:03.582",
  null,
  null
]

1 rows

query +73.0 ms 2.0 ms
select `id` from `sessions` where ((`sessions`.`subject_type` = 'admin' and `sessions`.`subject_id` = '01a130d6-8161-7068-92f2-3f4b06b4ad11') and `sessions`.`revoked_at` is null and `sessions`.`expires_at` > '2026-12-06 08:18:03.585' and `sessions`.`id` <> '01a24a6e-78be-73e8-a4bb-1dcce7f4cf81') order by `sessions`.`last_used_at` desc

Parameters

[
  "admin",
  "01a130d6-8161-7068-92f2-3f4b06b4ad11",
  "2026-12-06 08:18:03.585",
  "01a24a6e-78be-73e8-a4bb-1dcce7f4cf81"
]

8 rows

query +75.0 ms 2.6 ms
commit

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",
  "content-length": "53",
  "accept": "application/json, text/plain, */*",
  "accept-encoding": "gzip, deflate, br, zstd",
  "accept-language": "ar",
  "cache-control": "no-cache",
  "content-type": "application/json",
  "locale": "ar",
  "origin": "https://maqsed-dashboard.dev-moltaqa.cloud",
  "pragma": "no-cache",
  "priority": "u=1, i",
  "referer": "https://maqsed-dashboard.dev-moltaqa.cloud/ar/login",
  "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
{}
Body
{
  "mobile": "0500000001",
  "password": "********"
}

Response

Body
{
  "accessToken": "********",
  "admin": {
    "id": "01a130d6-8161-7068-92f2-3f4b06b4ad11",
    "name": "مدير النظام",
    "mobile": "+966500000001",
    "email": "admin@maqsed.test",
    "status": "active",
    "disabledReason": null,
    "language": "ar",
    "theme": "light",
    "avatarUrl": "https://maqsed-api.dev-moltaqa.cloud/files/01a158e9-f1db-70c8-9f8e-dcb9a96bf0f0",
    "role": {
      "id": "01a130c9-de06-743d-97b4-4301e6f13a43",
      "name": "مدير النظام",
      "isSystem": true
    },
    "permissions": [
      "*"
    ],
    "lastSignInAt": "2026-12-06T08:18:03.577Z",
    "signInCount": 97,
    "createdAt": "2026-10-12T15:58:46.635Z"
  }
}