HLR Log (Number Lookup)
Navigate to Analytics → Messaging → HLR Log in the sidebar, or open /analytics/hlr-logs.

Summary
Section titled “Summary”Report HLR Logs (Home Location Register) displays the history of phone number validity checks. Each check returns the number status (active/inactive), the network operator, the response time (latency), and the cost.
API Used
Section titled “API Used”Filter
Section titled “Filter”| Filter | Function |
|---|---|
| Date Range | Global filter at the top of the Analytics page |
| Number Search | Text input with 500ms debounce for searching specific phone numbers |
| Status | Dropdown: All Status, Active, Inactive, Unknown, Failed |
| Billing Account | Dropdown (only appears if the user has more than 1 billing account). Options: All Accounts, or a specific billing account ID |
Search uses debounce — API requests are sent 500ms after the user stops typing.
Table Columns
Section titled “Table Columns”| The column | Description | Technical Details |
|---|---|---|
| Timestamp | When the HLR lookup is performed | Format PPp (e.g. “Jun 1, 2026, 3:45:00 PM”), monospace font |
| Phone Number | Checked number | Displayed in bold |
| Operator | Detected network provider | Displayed in uppercase with an icon: Telkomsel (signature gradient icon), XL (green-blue icon), or a generic globe icon for other carriers |
| Status | Number check result | Colored badge: green for Active, red for Inactive/Failed, gray for Unknown |
| Latency | Check response time in milliseconds | Format Nms, monospace font |
| Cost | HLR check cost | Conversion from micros (value / 100_000), formatted as currency. IDR without decimals, other currencies with 2 decimals |
Status Badge
Section titled “Status Badge”| Status | Badge Color | Description |
|---|---|---|
| Active | Hijau (bg-emerald-100 text-emerald-800) | Active number registered on the network |
| Inactive | Red (variant="destructive") | Number inactive or not registered |
| Failed | Dark red (bg-red-100 text-red-800) | Lookup failed (technical error) |
| Unknown | Gray (variant="secondary") | Status could not be determined |
Operator Icon
Section titled “Operator Icon”| Operator | Icon |
|---|---|
tsel (Telkomsel) | Telkomsel yellow-red gradient logo |
xl (XL Axiata) | XL green-blue logo |
| Others | Generic gray globe icon |
Fee Conversion
Section titled “Fee Conversion”Value cost from the API in micros (per hundred thousand). The portal converts:
NilaiTampilan = cost / 100_000For IDR: formatted without decimals (e.g. Rp 50). For other currencies: 2 decimals.
Pagination (Cursor-Based)
Section titled “Pagination (Cursor-Based)”Unlike other reports that use offset pagination, HLR uses cursor-based pagination:
- The API returns
next_page_state(string or null) as the cursor for the next page. - Button Load More at the bottom of the table appends data to existing rows (append).
- A new filter resets all data and the cursor.
Export Excel
Section titled “Export Excel”Button Export Excel in the top-right corner downloads the file .xlsx:
- Date range limited to maximum of 31 days. If exceeded, an error toast is displayed.
- If there is no data (empty table), the button is disabled.
- File downloaded as
hlr_logs_YYYY-MM-DD_YYYY-MM-DD.xlsx. - Export respects filters
billingAccountIdbut does not apply the filtersearchorstatus.
Empty State
Section titled “Empty State”When there are no HLR logs in the period/filter, the table displays a middle row with the message “No HLR logs found.”
Error Status
Section titled “Error Status”- If the API request fails: a red alert above the table.
- Error toast for failed exports.
- Success toast when the export succeeds.
HLR Data Type
Section titled “HLR Data Type”Type HlrLogEntry from the API contains:
| Field | Type | Description |
|---|---|---|
request_id | string | Unique HLR lookup ID |
phone_number | string | Phone number that was checked |
provider | string | Detected network operator (e.g. tsel, xl) |
status | HlrLogStatus | Active, Inactive, Failed, or Unknown |
created_at | string | ISO 8601 timestamp |
latency_ms | number | Response time in milliseconds |
cost | number | Cost in micros |
currency | string | Currency code (default: IDR) |