Preview route lookup
GET
/v1/ns/{nsid}/lcr/tables/{table}/lookup
const url = 'https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/lcr/tables/example/lookup';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”nsid
required
string format: uuid
Namespace UUID
table
required
string
Query Parameters
Section titled “Query Parameters”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).
Responses
Section titled “Responses”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" } ]}default
Section titled “default”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"}