Skip to content

Preview route lookup

GET
/v1/ns/{nsid}/lcr/tables/{table}/lookup
curl --request GET \
--url https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lcr/tables/example/lookup \
--header 'Authorization: Bearer <token>'

Returns the raw rows matching the supplied key filters against a table version (defaults to the active version), without ranking or cost computation. A debugging/inspection view of stored rows; use /resolve to see how an actual dialed number would be routed and ranked.

nsid
required
string format: uuid

Namespace UUID

table
required
string
prefix
string

Exact prefix to match (omit to match any).

selector
string

Exact selector to match (omit to match any).

trunk
string

Exact trunk to match (omit to match any).

version
integer format: int64

Table version to read (defaults to the active version).

OK

Media typeapplication/json
object
success
required
boolean
routes
required
Array<object>
object
prefix
required
string
selector
required
string
trunk
required
string
per_minute_cost
required
integer format: int64
setup_cost
integer format: int64
priority
integer
effective_on
string format: date-time
valid_until
string format: date-time
Examplegenerated
{
"success": true,
"routes": [
{
"prefix": "example",
"selector": "example",
"trunk": "example",
"per_minute_cost": 1,
"setup_cost": 1,
"priority": 1,
"effective_on": "2026-04-15T12:00:00Z",
"valid_until": "2026-04-15T12:00:00Z"
}
]
}

Error response

Media typeapplication/problem+json

RFC 7807 Problem Details

object
type

Problem type slug URI

string
title
string
status
integer
detail
string
key
additional properties
any
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example"
}