Skip to main content

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

400: Bad request when missing tn

401: Unauthorized request

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"
}