← All requests

POST /v1/advertiser/auth/register/files

Status
201
Duration
11.3 ms
Started (UTC)
2026-10-07 15:11:08.747
Route
/v1/advertiser/auth/register/files
Request ID
d9228f0f-025d-408c-9a5f-8829829ced98
IP
37.19.196.100
User agent
curl/8.7.1
Language
ar
Queries
1 (3.9 ms)
Cache hit / miss
0 / 0

Timeline

query +7.0 ms 3.9 ms
insert into `files` (`id`, `purpose`, `visibility`, `storage_key`, `original_name`, `mime_type`, `size_bytes`, `sha256`, `owner_type`, `owner_id`, `attached_at`, `created_at`, `updated_at`) values ('01a116eb-19d1-7759-a924-ea6ee8750216', 'commercial_registration', 'private', 'commercial_registration/2026/10/01a116eb-19d1-7759-a924-ea6ee8750216.pdf', 'cr.pdf', 'application/pdf', 69, 'cfa3181c1ee36e8bce5e39f84959f4558ea7ba32c0e4539a8ab3c8ce8c716ec6', NULL, NULL, NULL, '2026-10-07 15:11:08.753', '2026-10-07 15:11:08.753')

Parameters

[
  "01a116eb-19d1-7759-a924-ea6ee8750216",
  "commercial_registration",
  "private",
  "commercial_registration/2026/10/01a116eb-19d1-7759-a924-ea6ee8750216.pdf",
  "cr.pdf",
  "application/pdf",
  69,
  "cfa3181c1ee36e8bce5e39f84959f4558ea7ba32c0e4539a8ab3c8ce8c716ec6",
  null,
  null,
  null,
  "2026-10-07 15:11:08.753",
  "2026-10-07 15:11:08.753"
]

1 rows

Request

Headers
{
  "host": "maqsed-api.dev-moltaqa.cloud",
  "user-agent": "curl/8.7.1",
  "content-length": "270",
  "accept": "*/*",
  "content-type": "multipart/form-data; boundary=------------------------ntc3Aqy67LtnRxrUv6zXaE",
  "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
{
  "purpose": "commercial_registration"
}

Response

Body
{
  "id": "01a116eb-19d1-7759-a924-ea6ee8750216",
  "purpose": "commercial_registration",
  "name": "cr.pdf",
  "mimeType": "application/pdf",
  "size": 69,
  "url": "https://maqsed-api.dev-moltaqa.cloud/files/01a116eb-19d1-7759-a924-ea6ee8750216?expires=1791389468&signature=9f720449d28ec20fb2f09678ff1a0092fe9502c3c44cac044565d6a2289a5937",
  "urlExpiresAt": "2026-10-07T16:11:08.000Z"
}