{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/teliax/json-schema/teliax-lrn-lookup-response-schema.json",
  "title": "LrnLookupResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/teliax-lrn-api-openapi.yml#/components/schemas/LrnLookupResponse",
  "type": "object",
  "required": [
    "phone_number",
    "lrn",
    "status",
    "timestamp"
  ],
  "properties": {
    "phone_number": {
      "type": "string",
      "description": "Normalized 10-digit phone number"
    },
    "lrn": {
      "type": "string",
      "description": "Local Routing Number — the switch serving this number"
    },
    "status": {
      "type": "string",
      "description": "Request status"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Response timestamp (ISO 8601)"
    },
    "metadata": {
      "$ref": "#/$defs/LrnMetadata"
    }
  },
  "$defs": {
    "LrnMetadata": {
      "type": "object",
      "description": "Routing metadata for the LRN response. For authoritative NPAC port-event\nhistory (activation timestamp, transaction history), use the LSMS GraphQL\n`subscriptionVersion` query — this REST endpoint only carries the routing\nidentifiers needed to dial the number.\n",
      "properties": {
        "spid": {
          "type": "string",
          "description": "Service Provider ID (4 characters)"
        },
        "lnp_type": {
          "type": "string",
          "description": "Local Number Portability type",
          "enum": [
            "lspp",
            "lisp",
            "pool"
          ]
        }
      }
    }
  }
}