← All requests

POST /v1/customer/auth/register/otp

Status
200
Duration
23.8 ms
Started (UTC)
2026-10-07 15:10:45.699
Route
/v1/customer/auth/register/otp
Request ID
42f0963c-be47-49a5-80c2-40000cc02332
IP
37.19.196.100
User agent
curl/8.7.1
Language
ar
Queries
7 (11.7 ms)
Cache hit / miss
0 / 0

Timeline

query +4.0 ms 3.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`.`mobile` = '+966590909806'

Parameters

[
  "+966590909806"
]

0 rows

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

Parameters

[
  "acct17119@example.com"
]

0 rows

query +12.0 ms 0.9 ms
select `created_at` from `otp_codes` where (`otp_codes`.`namespace` = 'customer' and `otp_codes`.`purpose` = 'register' and `otp_codes`.`mobile` = '+966590909806') order by `otp_codes`.`created_at` desc limit 1

Parameters

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

0 rows

query +14.0 ms 0.8 ms
select count(*), min(`created_at`) from `otp_codes` where (`otp_codes`.`mobile` = '+966590909806' and `otp_codes`.`created_at` > '2026-10-07 14:10:45.710')

Parameters

[
  "+966590909806",
  "2026-10-07 14:10:45.710"
]

1 rows

query +15.0 ms 1.0 ms
select count(*), min(`created_at`) from `otp_codes` where (`otp_codes`.`ip` = '37.19.196.100' and `otp_codes`.`created_at` > '2026-10-07 14:10:45.710')

Parameters

[
  "37.19.196.100",
  "2026-10-07 14:10:45.710"
]

1 rows

query +16.0 ms 0.7 ms
update `otp_codes` set `consumed_at` = '2026-10-07 15:10:45.710' where ((`otp_codes`.`namespace` = 'customer' and `otp_codes`.`purpose` = 'register' and `otp_codes`.`mobile` = '+966590909806') and `otp_codes`.`consumed_at` is null)

Parameters

[
  "2026-10-07 15:10:45.710",
  "customer",
  "register",
  "+966590909806"
]

0 rows

query +18.0 ms 3.6 ms
insert into `otp_codes` (`id`, `namespace`, `purpose`, `mobile`, `code_hash`, `attempts`, `ip`, `created_at`, `expires_at`, `consumed_at`) values ('01a116ea-bfd4-7202-a1e1-5e0e5acd05cd', 'customer', 'register', '+966590909806', '1ce951f36b34a4177f1b14e6e60f45a05eddbc896f7c05c56d0639a9cb618d3e', default, '37.19.196.100', '2026-10-07 15:10:45.710', '2026-10-07 15:11:45.710', default)

Parameters

[
  "01a116ea-bfd4-7202-a1e1-5e0e5acd05cd",
  "customer",
  "register",
  "+966590909806",
  "1ce951f36b34a4177f1b14e6e60f45a05eddbc896f7c05c56d0639a9cb618d3e",
  "37.19.196.100",
  "2026-10-07 15:10:45.710",
  "2026-10-07 15:11:45.710"
]

1 rows

Request

Headers
{
  "host": "maqsed-api.dev-moltaqa.cloud",
  "user-agent": "curl/8.7.1",
  "content-length": "88",
  "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": "0590909806",
  "email": "acct17119@example.com",
  "acceptTerms": true
}

Response

Body
{
  "expiresAt": "2026-10-07T15:11:45.710Z",
  "resendAfterSeconds": 60
}