Extended LRN lookup using HTTP
GET/LRNLookup/:tn
Uses HTTP to retrieve the extended local routing number information (LRN).
Request
Path Parameters
tn ^[\d]{10}required
10-digit phone number
Query Parameters
format json|xml
Specify format for response either json or xml
Responses
200: Successful response
- application/json
400: Bad request when missing tn
- application/json
401: Unauthorized request
- application/json
Request samples
curl -L 'https://lrnlookup.telnyx.com/v1.1/LRNLookup/:tn' \
-H 'Accept: application/json'
Response samples
{
"tn": "string",
"lrn": "string",
"ported_status": "Y",
"ocn": "string",
"line_type": "string",
"spid": "string",
"spid_carrier_name": "string",
"spid_carrier_type": "string",
"altspid": "string",
"altspid_carrier_name": "string",
"altspid_carrier_type": "string"
}
{
"error": "string"
}
{
"error": "string"
}