{
  "openapi": "3.1.0",
  "info": {
    "title": "A1ROUTES Number Lookup",
    "version": "1.0.0",
    "description": "Customer API reference. Confirm account availability and deployed response formats before production use."
  },
  "servers": [
    {
      "url": "https://control.a1routes.com/api"
    }
  ],
  "paths": {
    "/lookup/lrn": {
      "get": {
        "operationId": "lrn",
        "summary": "Look up a number",
        "description": "Retrieve LRN information for a telephone number using your main SIP account API key.",
        "tags": [
          "Number Lookup"
        ],
        "parameters": [
          {
            "name": "tn",
            "in": "query",
            "required": true,
            "description": "Telephone number to look up. Use the number format enabled for your account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extended",
            "in": "query",
            "required": false,
            "description": "Request extended lookup information. The example uses true.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "Inspect HTTP status and content type. Exact success/error schemas must be verified for the assigned account."
          },
          "200": {
            "description": "Successful extended LRN lookup. Example values vary by telephone number; some fields may be empty strings.",
            "content": {
              "application/json": {
                "examples": {
                  "extendedLookup": {
                    "summary": "Extended LRN lookup",
                    "value": {
                      "CITY": "RAMSEY",
                      "code": 200,
                      "LINETYPE": "WIRELESS",
                      "DNC": "",
                      "OCN": "4036",
                      "COUNTRY": "",
                      "LOOKUP_TYPE": "EXTENDED",
                      "JURISDICTION": "INDETERMINATE",
                      "NUMBER": "12014667482",
                      "LRN": "12014667482",
                      "STATE": "NJ",
                      "LEC": "NEW CINGULAR WIRELESS PCS, LLC - DC",
                      "LATA": "224",
                      "SPID": "",
                      "msg": "Operation successful",
                      "type": "+OK"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "query",
        "name": "api_key",
        "description": "Main SIP account API key."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}