Skip to content

HLR Log (Number Lookup)

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

Number validity check log (HLR)
Number validity check log (HLR)

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.

FilterFunction
Date RangeGlobal filter at the top of the Analytics page
Number SearchText input with 500ms debounce for searching specific phone numbers
StatusDropdown: All Status, Active, Inactive, Unknown, Failed
Billing AccountDropdown (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.

The columnDescriptionTechnical Details
TimestampWhen the HLR lookup is performedFormat PPp (e.g. “Jun 1, 2026, 3:45:00 PM”), monospace font
Phone NumberChecked numberDisplayed in bold
OperatorDetected network providerDisplayed in uppercase with an icon: Telkomsel (signature gradient icon), XL (green-blue icon), or a generic globe icon for other carriers
StatusNumber check resultColored badge: green for Active, red for Inactive/Failed, gray for Unknown
LatencyCheck response time in millisecondsFormat Nms, monospace font
CostHLR check costConversion from micros (value / 100_000), formatted as currency. IDR without decimals, other currencies with 2 decimals
StatusBadge ColorDescription
ActiveHijau (bg-emerald-100 text-emerald-800)Active number registered on the network
InactiveRed (variant="destructive")Number inactive or not registered
FailedDark red (bg-red-100 text-red-800)Lookup failed (technical error)
UnknownGray (variant="secondary")Status could not be determined
OperatorIcon
tsel (Telkomsel)Telkomsel yellow-red gradient logo
xl (XL Axiata)XL green-blue logo
OthersGeneric gray globe icon

Value cost from the API in micros (per hundred thousand). The portal converts:

NilaiTampilan = cost / 100_000

For IDR: formatted without decimals (e.g. Rp 50). For other currencies: 2 decimals.

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.

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 billingAccountId but does not apply the filter search or status.

When there are no HLR logs in the period/filter, the table displays a middle row with the message “No HLR logs found.”

  • If the API request fails: a red alert above the table.
  • Error toast for failed exports.
  • Success toast when the export succeeds.

Type HlrLogEntry from the API contains:

FieldTypeDescription
request_idstringUnique HLR lookup ID
phone_numberstringPhone number that was checked
providerstringDetected network operator (e.g. tsel, xl)
statusHlrLogStatusActive, Inactive, Failed, or Unknown
created_atstringISO 8601 timestamp
latency_msnumberResponse time in milliseconds
costnumberCost in micros
currencystringCurrency code (default: IDR)