Get phone numbers for a company
curl --request GET \
--url https://lens-api.tic.io/companies/{id}/phone-numbers \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/companies/{id}/phone-numbers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/companies/{id}/phone-numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/companies/{id}/phone-numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/companies/{id}/phone-numbers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/companies/{id}/phone-numbers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/companies/{id}/phone-numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"e164PhoneNumber": "<string>",
"formattedPhoneNumber": "<string>",
"companyDataSourceType": "bolt",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"numberPlanServiceType": "<string>",
"orginalOperator": "<string>",
"priorOperator": "<string>",
"currentOperator": "<string>",
"operatorFallback": "<string>",
"lastPortingDate": "2023-11-07T05:31:56Z",
"noMatchInNumberPlan": true,
"externalId": 123,
"externalOrigin": "table_Bolagsverket_Notification",
"sourceBlockType": "blockedForMarketing",
"presentInCompanies": 123
}
]Companies
Get phone numbers for a company
Returns all phone numbers linked to the company across internal sources.
GET
/
companies
/
{id}
/
phone-numbers
Get phone numbers for a company
curl --request GET \
--url https://lens-api.tic.io/companies/{id}/phone-numbers \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/companies/{id}/phone-numbers"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/companies/{id}/phone-numbers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/companies/{id}/phone-numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/companies/{id}/phone-numbers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/companies/{id}/phone-numbers")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/companies/{id}/phone-numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"e164PhoneNumber": "<string>",
"formattedPhoneNumber": "<string>",
"companyDataSourceType": "bolt",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"numberPlanServiceType": "<string>",
"orginalOperator": "<string>",
"priorOperator": "<string>",
"currentOperator": "<string>",
"operatorFallback": "<string>",
"lastPortingDate": "2023-11-07T05:31:56Z",
"noMatchInNumberPlan": true,
"externalId": 123,
"externalOrigin": "table_Bolagsverket_Notification",
"sourceBlockType": "blockedForMarketing",
"presentInCompanies": 123
}
]Pro+ tier
Authorizations
Path Parameters
Internal company ID
Response
Phone numbers
Available options:
bolt, dash, flux, pixel, quark, spark, vector, cipher, delta, omega, nova, apex, zenith, pulse, nexus, helix, prism, vertex, ion, codec, vortex, matrix, byte, glitch, echo, rune, sync, axiom, core, node, nano, photon, orbit, tensor, kernel, beacon, crypto, proxy, lumen, strobe, neutron, radix Available options:
table_Bolagsverket_Notification, table_Stage_CompanyPersonHistory, table_PRV_Trademark, table_System_SwedishCity, table_FI_Company, table_FI_CompanyPermit, table_ICA_Store, table_Srf_Company, table_FAR_Member, table_Bolagsverket_Document, table_Bolagsverket_Case, table_SalesOrderRow, table_SalesOrder, table_System_UserValidation, table_System_User, table_User, table_TeamInvitation, table_Sweden_CourtDocument, table_PRV_TrademarkImage, table_Bolagsverket_Order, table_SCB_JE, table_SCB_AE, table_Bolagsverket_BeneficialOwnerNotification, table_TeamWatchListTrigger, table_SCB_Foretagsnamn, table_SCB_ExpImp, table_SCB_AstNummer, table_SCB_Konskvot, table_Company, table_Larmtjanst_Object, table_Transportstyrelsen_Person, table_Forsakringskassan_Claim, table_FI_BorsInformationReport, table_Skatteverket_FA_INK, table_Skatteverket_FA_MOMS_AG, table_Skatteverket_KA_PLIGG, table_Skatteverket_SKT_AG, table_Skatteverket_SKT_INK, table_Skatteverket_SKT_MOMS, table_Skatteverket_TF_ANST, table_SPAR_NotificationRecord, table_SPAR_NotificationRecordReference, table_Lantmateriet_InskrivningPerson, table_CompanyCase, table_Bolagsverket_BeneficialOwner, table_Bolagsverket_AnnualReport, table_SPAR_NotificationRecordRelationship, table_Skatteverket_Basinformation, table_PersonRelationship, table_CompanyImport, table_SeaweedFSFile, table_Sweden_CompanyAnnualReport, table_CompanyFinancialReport, table_CompanyAddress, table_CompanyStatus, table_CompanyPerson, table_CompanyRegistration, table_CompanyIntelligence, table_CompanyFinancialDocument, table_CompanyNaming, table_CompanyPurpose, table_CompanyShareCapital, table_CompanyRegisteredOffice, table_KFM_OrderToPayCase, table_PersonAddress, table_PersonName, table_CompanyWorkplaceAddress, table_Lantmateriet_InskrivningAgandeForandring, table_Lantmateriet_InskrivningInteckning, file_Bolagsverket, table_KFM_DebtorSummaryEntityDebt, table_CompanyWorkplaceCompany, table_CompanyDocument, table_FileImport, table_CompanyFinancialReportRegistration, table_Folkhalsomyndigheten_ServingPermit, table_CompanyFinancialReportFile, table_TeamCompanyDocument, table_Bolagsverket_RepresentativeHistory, table_CompanyPersonTemp, table_Lansstyrelsen_Decision, table_Kammarkollegiet_Sanktionsavgift, table_CompanyFinancialReportSummary, table_Lantmateriet_InskrivningAnteckning, table_Property, table_SwishRequest, external_Lantmateriet_RegisterenhetObjektIdentitet, table_SwishRefundResponse, table_LEI_Order, table_Bankgirot_Bankgironumber, table_Person, external_Navet, table_Transportstyrelsen_VehicleSummaryEvent, external_Bolagsverket_Case, table_Ria_AgentLocation, table_PropertyAnnualReportFile Available options:
blockedForMarketing, blockedAtNIX