---
agentTools:
  projectIndex: https://docs.boostr.cl/llms.txt
---

# 🔐 Compañía telefónica

Permite validar si un número está vigente y a qué compañía pertenece

> 📘 Este servicio requiere usar un API KEY
>
> Contáctame a <hola@boostr.cl> para obtener los valores del servicio.

Este servicio te permite saber si un número telefónico es válido, quiere decir que existe y está activado, y además a qué compañia telefónica pertenece.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.boostr.cl/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/telephone/carrier_lookup/{phonenumber}.json": {
      "get": {
        "summary": "🔐 Compañía telefónica",
        "description": "Permite validar si un número está vigente y a qué compañía pertenece",
        "operationId": "telephone-carrier-lookup",
        "parameters": [
          {
            "name": "phonenumber",
            "in": "path",
            "description": "Número a consultar, **no incluir +56**",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 997150764
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"status\": \"success\",\n\t\"data\": {\n\t\t\"valid\": true,\n\t\t\"number\": \"997150764\",\n\t\t\"company\": \"Entel\"\n\t}\n}"
                  },
                  "No existe": {
                    "value": "{\n\t\"status\": \"success\",\n\t\"data\": {\n\t\t\"valid\": false,\n\t\t\"number\": \"‪949014061‬\"\n\t}\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "success"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean",
                              "example": true,
                              "default": true
                            },
                            "number": {
                              "type": "string",
                              "example": "997150764"
                            },
                            "company": {
                              "type": "string",
                              "example": "Entel"
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "No existe",
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "example": "success"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "number": {
                              "type": "string",
                              "example": "‪949014061‬"
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"status\": \"error\",\n\t\"data\": \"\",\n\t\"message\": \"Formato de número de teléfono incorrecto. Se esperan al menos 9 dígitos.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "data": {
                      "type": "string",
                      "example": ""
                    },
                    "message": {
                      "type": "string",
                      "example": "Formato de número de teléfono incorrecto. Se esperan al menos 9 dígitos."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "654e7dc803529d00186e828b:6913b13439219260e6dbcc84"
}
```