Remove a phone number from reputation monitoring
Stop tracking the reputation of this phone number. The number itself remains in your inventory; only the reputation registration is removed.
DELETE
/
enterprises
/
{enterprise_id}
/
reputation
/
numbers
/
{phone_number}
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.enterprises.reputation.numbers.disassociate('+19493253498', {
enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
});import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.enterprises.reputation.numbers.disassociate(
phone_number="+19493253498",
enterprise_id="4a6192a4-573d-446d-b3ce-aff9117272a6",
)package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Enterprises.Reputation.Numbers.Disassociate(
context.TODO(),
"+19493253498",
telnyx.EnterpriseReputationNumberDisassociateParams{
EnterpriseID: "4a6192a4-573d-446d-b3ce-aff9117272a6",
},
)
if err != nil {
panic(err.Error())
}
}package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.enterprises.reputation.numbers.NumberDisassociateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
NumberDisassociateParams params = NumberDisassociateParams.builder()
.enterpriseId("4a6192a4-573d-446d-b3ce-aff9117272a6")
.phoneNumber("+19493253498")
.build();
client.enterprises().reputation().numbers().disassociate(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
result = telnyx.enterprises.reputation.numbers.disassociate(
"+19493253498",
enterprise_id: "4a6192a4-573d-446d-b3ce-aff9117272a6"
)
puts(result)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$result = $client->enterprises->reputation->numbers->disassociate(
'+19493253498', enterpriseID: '4a6192a4-573d-446d-b3ce-aff9117272a6'
);
var_dump($result);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx enterprises:reputation:numbers disassociate \
--api-key 'My API Key' \
--enterprise-id 4a6192a4-573d-446d-b3ce-aff9117272a6 \
--phone-number +19493253498curl --request DELETE \
--url https://api.telnyx.com/v2/enterprises/{enterprise_id}/reputation/numbers/{phone_number} \
--header 'Authorization: Bearer <token>'Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The enterprise id. Lowercase UUID.
Example:
"4a6192a4-573d-446d-b3ce-aff9117272a6"
Phone number in E.164 format (+1NPANXXXXXX for US/CA). The leading + MUST be URL-encoded as %2B (e.g. %2B19493253498).
Example:
"+19493253498"
Response
204 (no body)
Was this page helpful?
Get a single reputation-monitored phone number
Previous
List reputation-monitored phone numbers across all enterprises
Next
⌘I
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.enterprises.reputation.numbers.disassociate('+19493253498', {
enterprise_id: '4a6192a4-573d-446d-b3ce-aff9117272a6',
});import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.enterprises.reputation.numbers.disassociate(
phone_number="+19493253498",
enterprise_id="4a6192a4-573d-446d-b3ce-aff9117272a6",
)package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Enterprises.Reputation.Numbers.Disassociate(
context.TODO(),
"+19493253498",
telnyx.EnterpriseReputationNumberDisassociateParams{
EnterpriseID: "4a6192a4-573d-446d-b3ce-aff9117272a6",
},
)
if err != nil {
panic(err.Error())
}
}package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.enterprises.reputation.numbers.NumberDisassociateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
NumberDisassociateParams params = NumberDisassociateParams.builder()
.enterpriseId("4a6192a4-573d-446d-b3ce-aff9117272a6")
.phoneNumber("+19493253498")
.build();
client.enterprises().reputation().numbers().disassociate(params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
result = telnyx.enterprises.reputation.numbers.disassociate(
"+19493253498",
enterprise_id: "4a6192a4-573d-446d-b3ce-aff9117272a6"
)
puts(result)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$result = $client->enterprises->reputation->numbers->disassociate(
'+19493253498', enterpriseID: '4a6192a4-573d-446d-b3ce-aff9117272a6'
);
var_dump($result);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx enterprises:reputation:numbers disassociate \
--api-key 'My API Key' \
--enterprise-id 4a6192a4-573d-446d-b3ce-aff9117272a6 \
--phone-number +19493253498curl --request DELETE \
--url https://api.telnyx.com/v2/enterprises/{enterprise_id}/reputation/numbers/{phone_number} \
--header 'Authorization: Bearer <token>'