← All requests

POST /v1/customer/auth/register

Status
201
Duration
50.6 ms
Started (UTC)
2026-10-07 15:10:31.051
Route
/v1/customer/auth/register
Request ID
a7d35267-2fba-431a-a0b3-235c2175eec5
IP
37.19.196.100
User agent
curl/8.7.1
Language
ar
Queries
12 (33.2 ms)
Cache hit / miss
0 / 0

Timeline

query +6.0 ms 2.2 ms
select `id`, `mobile`, `status`, `language`, `last_sign_in_at`, `disabled_reason`, `created_at`, `updated_at`, `deleted_at`, `name`, `email`, `avatar_file_id`, `gender`, `date_of_birth`, `terms_accepted_at` from `customers` where `customers`.`mobile` = '+966572345441'

Parameters

[
  "+966572345441"
]

0 rows

query +9.0 ms 0.9 ms
select `id` from `customers` where `customers`.`email` = 'acct17119@example.com'

Parameters

[
  "acct17119@example.com"
]

0 rows

query +11.0 ms 1.8 ms
select `id`, `namespace`, `purpose`, `mobile`, `code_hash`, `attempts`, `ip`, `created_at`, `expires_at`, `consumed_at` from `otp_codes` where (`otp_codes`.`namespace` = 'customer' and `otp_codes`.`purpose` = 'register' and `otp_codes`.`mobile` = '+966572345441') order by `otp_codes`.`created_at` desc limit 1

Parameters

[
  "customer",
  "register",
  "+966572345441",
  1
]

1 rows

query +13.0 ms 5.5 ms
update `otp_codes` set `consumed_at` = '2026-10-07 15:10:31.061' where (`otp_codes`.`id` = '01a116ea-8257-7700-aaf7-385f3b5b3f5e' and `otp_codes`.`consumed_at` is null)

Parameters

[
  "2026-10-07 15:10:31.061",
  "01a116ea-8257-7700-aaf7-385f3b5b3f5e"
]

1 rows

query +20.0 ms 0.4 ms
begin

0 rows

query +21.0 ms 4.0 ms
insert into `customers` (`id`, `mobile`, `status`, `language`, `last_sign_in_at`, `disabled_reason`, `created_at`, `updated_at`, `deleted_at`, `name`, `email`, `avatar_file_id`, `gender`, `date_of_birth`, `terms_accepted_at`) values ('01a116ea-86a0-72d2-b7a5-8fc8297c73d0', '+966572345441', default, default, default, default, default, default, default, 'Sara', 'acct17119@example.com', default, default, default, '2026-10-07 15:10:31.072')

Parameters

[
  "01a116ea-86a0-72d2-b7a5-8fc8297c73d0",
  "+966572345441",
  "Sara",
  "acct17119@example.com",
  "2026-10-07 15:10:31.072"
]

1 rows

query +26.0 ms 1.1 ms
select `id`, `mobile`, `status`, `language`, `last_sign_in_at`, `disabled_reason`, `created_at`, `updated_at`, `deleted_at`, `name`, `email`, `avatar_file_id`, `gender`, `date_of_birth`, `terms_accepted_at` from `customers` where (`customers`.`id` = '01a116ea-86a0-72d2-b7a5-8fc8297c73d0' and `customers`.`deleted_at` is null)

Parameters

[
  "01a116ea-86a0-72d2-b7a5-8fc8297c73d0"
]

1 rows

query +28.0 ms 2.6 ms
update `customers` set `last_sign_in_at` = '2026-10-07 15:10:31.078', `updated_at` = '2026-10-07 15:10:31.079' where (`customers`.`id` = '01a116ea-86a0-72d2-b7a5-8fc8297c73d0' and `customers`.`deleted_at` is null)

Parameters

[
  "2026-10-07 15:10:31.078",
  "2026-10-07 15:10:31.079",
  "01a116ea-86a0-72d2-b7a5-8fc8297c73d0"
]

1 rows

query +32.0 ms 0.8 ms
select `id`, `mobile`, `status`, `language`, `last_sign_in_at`, `disabled_reason`, `created_at`, `updated_at`, `deleted_at`, `name`, `email`, `avatar_file_id`, `gender`, `date_of_birth`, `terms_accepted_at` from `customers` where (`customers`.`id` = '01a116ea-86a0-72d2-b7a5-8fc8297c73d0' and `customers`.`deleted_at` is null)

Parameters

[
  "01a116ea-86a0-72d2-b7a5-8fc8297c73d0"
]

1 rows

query +35.0 ms 10.5 ms
insert into `sessions` (`id`, `subject_type`, `subject_id`, `token_hash`, `device_name`, `ip`, `user_agent`, `created_at`, `last_used_at`, `expires_at`, `revoked_at`, `revoked_reason`) values ('01a116ea-86ac-7516-91cf-da85d8d93f86', 'customer', '01a116ea-86a0-72d2-b7a5-8fc8297c73d0', '9b718ccc023efa67f988b089724d44b73338e464a6b217c494dddf795ac3256a', NULL, '37.19.196.100', 'curl/8.7.1', '2026-10-07 15:10:31.084', '2026-10-07 15:10:31.084', '2027-10-07 15:10:31.084', NULL, NULL)

Parameters

[
  "01a116ea-86ac-7516-91cf-da85d8d93f86",
  "customer",
  "01a116ea-86a0-72d2-b7a5-8fc8297c73d0",
  "9b718ccc023efa67f988b089724d44b73338e464a6b217c494dddf795ac3256a",
  null,
  "37.19.196.100",
  "curl/8.7.1",
  "2026-10-07 15:10:31.084",
  "2026-10-07 15:10:31.084",
  "2027-10-07 15:10:31.084",
  null,
  null
]

1 rows

query +46.0 ms 0.9 ms
select `id` from `sessions` where ((`sessions`.`subject_type` = 'customer' and `sessions`.`subject_id` = '01a116ea-86a0-72d2-b7a5-8fc8297c73d0') and `sessions`.`revoked_at` is null and `sessions`.`expires_at` > '2026-10-07 15:10:31.097' and `sessions`.`id` <> '01a116ea-86ac-7516-91cf-da85d8d93f86') order by `sessions`.`last_used_at` desc

Parameters

[
  "customer",
  "01a116ea-86a0-72d2-b7a5-8fc8297c73d0",
  "2026-10-07 15:10:31.097",
  "01a116ea-86ac-7516-91cf-da85d8d93f86"
]

0 rows

query +47.0 ms 2.5 ms
commit

0 rows

Request

Headers
{
  "host": "maqsed-api.dev-moltaqa.cloud",
  "user-agent": "curl/8.7.1",
  "content-length": "102",
  "accept": "*/*",
  "content-type": "application/json",
  "x-forwarded-for": "37.19.196.100",
  "x-forwarded-host": "maqsed-api.dev-moltaqa.cloud",
  "x-forwarded-port": "443",
  "x-forwarded-proto": "https",
  "x-forwarded-server": "2608fbae9cc2",
  "x-real-ip": "37.19.196.100",
  "accept-encoding": "gzip"
}
Query
{}
Body
{
  "name": "Sara",
  "mobile": "0572345441",
  "email": "acct17119@example.com",
  "acceptTerms": true,
  "code": "********"
}

Response

Body
{
  "accessToken": "********",
  "customer": {
    "id": "01a116ea-86a0-72d2-b7a5-8fc8297c73d0",
    "name": "Sara",
    "mobile": "+966572345441",
    "email": "acct17119@example.com",
    "avatarUrl": null,
    "gender": null,
    "dateOfBirth": null,
    "language": "ar",
    "createdAt": "2026-10-07T15:10:31.072Z"
  }
}