LRN Dip
Schema
The result of an LRN dip: the Local Routing Number for a NANP number, with the enhanced (eLRN) carrier and block data and the messaging-provider data when they are requested.
Type Object
| Name | Type | Description |
|---|---|---|
number |
String | The number from the request. |
lrn |
String | Desc. lrn |
lrn_activated_at |
String | Desc. lrn_activated_at |
enhanced |
SubObject | eLRN block; null unless enhanced=true. |
messaging |
SubObject | Desc. messaging |
Desc. lrn
The dipped LRN; equals the queried number if it was never ported.
Desc. lrn_activated_at
When the number was last ported; null if never ported.
SubObject
Sub-Schema
Type Object
| Name | Type | Description |
|---|---|---|
carrier |
String | Carrier the queried number belongs to. |
carrier_type |
String | Desc. carrier_type |
city |
String | |
country_code |
String | Country of origin of the number. |
county |
String | Desc. county |
lata |
String | Local Access Transport Area code. |
ocn |
String | Operating Company Number. |
rate_center |
String | Rate center the number is loaded under. |
state |
String | |
timezone |
String | Desc. timezone |
zip_code |
String | Desc. zip_code |
Desc. carrier_type
Carrier's service-provider type. One of ILEC, ICO, ULEC, RBOC, CLEC, CAP, IXC, WRSL, IPES, ETHX, INTL, LRSL, WIRELESS, PCS, PCSR, PAGING.
Desc. county
County of the number's switch; may be empty.
Desc. timezone
Timezone of the number's switch (UTC offset); may be empty.
Desc. zip_code
Zip code of the number's switch; may be empty.
Desc. messaging
Messaging provider block; null unless messaging_lookup=true.
SubObject
Sub-Schema
Type Object
| Name | Type | Description |
|---|---|---|
country |
String | Origin country of the number's provider. |
country_code |
String | Desc. country_code |
enabled |
Boolean | Desc. enabled |
provider |
String | Desc. provider |
reference_id |
String | Desc. reference_id |
Desc. country_code
ISO country code of the number's provider.
Desc. enabled
Whether the queried number is capable of SMS or MMS.
Desc. provider
Messaging provider if messaging-enabled, otherwise the voice provider.
Desc. reference_id
Tychron-issued internal ID grouping the service provider.
Example
{
"number": "12003004000",
"lrn": "12003004000",
"lrn_activated_at": null,
"enhanced": null,
"messaging": null
}
Summary
Look up the Local Routing Number for a NANP number. The same endpoint serves the enhanced tier (eLRN) via the enhanced flag (geo/carrier block data) and messaging-provider data via messaging_lookup — both may incur additional costs. Text output supports the base dip only (combining it with enhanced or messaging_lookup returns 400). Dips for Canadian numbers require additional permissions. Authenticate with your API Key's HTTP token as a Bearer credential.
Query results are licensed for the immediate transaction that generated the query. Under Tychron's Acceptable Use Policy, results may not be cached, stored, or reused for later transactions or used to build any dataset or directory, and may not be used for eligibility decisions regulated by the Fair Credit Reporting Act — query fresh, every time.
This endpoint is not part of the Atlas OpenAPI definition. This chapter follows the customer-facing contract on the LRN API page and its OpenAPI specification; that page also has troubleshooting for each response code and code samples.
API
LRN dip (optionally eLRN / messaging)
GET /api/v1/lrn/{number} HTTP/1.1
Returns the dipped LRN (which equals the queried number when the number has never been ported). Set enhanced=true for the eLRN block (carrier, geography, LATA/OCN) and messaging_lookup=true for the messaging provider block.
Path Parameters
| Name | Type | Description |
|---|---|---|
| number | String! | Path Desc. number |
Query Parameters
| Name | Type | Description |
|---|---|---|
| enhanced | Boolean | Query Desc. enhanced |
| messaging_lookup | Boolean | Query Desc. messaging_lookup |
| number_format | Enum(11digit, 10digit, e164):String |
Query Desc. number_format |
| output | Enum(json, text):String |
Query Desc. output |
| enable_cdr_export | Boolean | Query Desc. enable_cdr_export |
Path Desc. number
A valid NANP number, formatted per number_format (default 11-digit).
Query Desc. enhanced
Include the enhanced (eLRN) block — carrier and block information. May incur additional costs.
Default: false
Query Desc. messaging_lookup
Include the messaging provider block. May incur additional costs.
Default: false
Query Desc. number_format
Format of the queried number.
Default: 11digit
Query Desc. output
Response output format. Text output cannot be combined with enhanced or messaging_lookup (returns 400).
Default: json
Query Desc. enable_cdr_export
Forward CDRs generated by this request to any configured CDR Webhooks.
Default: false
Request
GET /api/v1/lrn/{number} HTTP/1.1
Accept: application/json
Response 200
application/json
Base LRN dip (no flags) — unported number
HTTP/1.1 200
Content-Type: application/json
Content-Length: 164
{
"data": {
"number": "12003004000",
"lrn": "12003004000",
"lrn_activated_at": null,
"enhanced": null,
"messaging": null
},
"errors": []
}
Base dip — ported number
HTTP/1.1 200
Content-Type: application/json
Content-Length: 189
{
"data": {
"number": "12003004000",
"lrn": "17463334653",
"lrn_activated_at": "2021-09-01T00:00:00.000000Z",
"enhanced": null,
"messaging": null
},
"errors": []
}
eLRN (enhanced=true)
HTTP/1.1 200
Content-Type: application/json
Content-Length: 491
{
"data": {
"number": "12003004000",
"lrn": "17463334653",
"lrn_activated_at": "2021-09-01T00:00:00.000000Z",
"enhanced": {
"carrier": "CARRIER NAME",
"carrier_type": "CLEC",
"city": "CITY NAME",
"zip_code": "12345",
"county": "COUNTY NAME",
"timezone": "-0500",
"state": "FL",
"rate_center": "RATECENTER",
"lata": "876",
"ocn": "333",
"country_code": "US"
},
"messaging": null
},
"errors": []
}
eLRN + messaging (both flags)
HTTP/1.1 200
Content-Type: application/json
Content-Length: 642
{
"data": {
"number": "12003004000",
"lrn": "17463334653",
"lrn_activated_at": "2021-09-01T00:00:00.000000Z",
"enhanced": {
"carrier": "CARRIER NAME",
"carrier_type": "CLEC",
"city": "CITY NAME",
"zip_code": "12345",
"county": "COUNTY NAME",
"timezone": "-0500",
"state": "FL",
"rate_center": "RATECENTER",
"lata": "876",
"ocn": "333",
"country_code": "US"
},
"messaging": {
"enabled": true,
"provider": "ACME Corp",
"country": "United States",
"country_code": "US",
"reference_id": "us_acme"
}
},
"errors": []
}
text/plain
The dipped LRN only (base dip; equals the queried number when unported).
HTTP/1.1 200
Content-Type: text/plain
Content-Length: 11
12003004000
Response Headers
| Name | Description |
|---|---|
| X-Request-ID | ID identifying the HTTP request. |
| X-CDR-ID | ID of the CDR (Call Detail Record) generated by the request; provide it for billing questions. |
Other Responses
| Code | Description |
|---|---|
| 400 | Bad Request — invalid parameters, most likely text output combined with the messaging_lookup or enhanced flags. |
| 401 | Unauthorized — missing, invalid, or expired API token, or the account is not permitted. |
| 402 | Payment Required — insufficient balance or credit limit exceeded. |
| 403 | Forbidden — currently applies to Canadian dips, which require additional permissions. |
| 415 | Unsupported Media Type — remove the Content-Type header; this is a GET with query parameters. |
| 422 | Unprocessable Entity — parameters failed validation; the body contains details. |
| 500 | Internal Server Error. |