Desbloquea una o varias direcciones
curl --request DELETE \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"addresses": [
"5491155551234"
],
"addressType": "phone"
}
'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses"
payload = {
"addresses": ["5491155551234"],
"addressType": "phone"
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({addresses: ['5491155551234'], addressType: 'phone'})
};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses', 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://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'addresses' => [
'5491155551234'
],
'addressType' => 'phone'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses"
payload := strings.NewReader("{\n \"addresses\": [\n \"5491155551234\"\n ],\n \"addressType\": \"phone\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n \"5491155551234\"\n ],\n \"addressType\": \"phone\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"addresses\": [\n \"5491155551234\"\n ],\n \"addressType\": \"phone\"\n}"
response = http.request(request)
puts response.read_body{
"unblocked": 1
}{
"message": "address or addresses is required"
}{
"message": "<string>",
"code": "<string>"
}Direcciones bloqueadas
Desbloquear direcciones
Retira una o varias direcciones de la lista de bloqueo.
DELETE
/
blocked-addresses
Desbloquea una o varias direcciones
curl --request DELETE \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"addresses": [
"5491155551234"
],
"addressType": "phone"
}
'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses"
payload = {
"addresses": ["5491155551234"],
"addressType": "phone"
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({addresses: ['5491155551234'], addressType: 'phone'})
};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses', 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://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'addresses' => [
'5491155551234'
],
'addressType' => 'phone'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses"
payload := strings.NewReader("{\n \"addresses\": [\n \"5491155551234\"\n ],\n \"addressType\": \"phone\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n \"5491155551234\"\n ],\n \"addressType\": \"phone\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/blocked-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"addresses\": [\n \"5491155551234\"\n ],\n \"addressType\": \"phone\"\n}"
response = http.request(request)
puts response.read_body{
"unblocked": 1
}{
"message": "address or addresses is required"
}{
"message": "<string>",
"code": "<string>"
}Permite que las direcciones indicadas vuelvan a utilizarse en la marcación de la cuenta.
Authorizations
API key obtenida desde la interfaz de Inagent, dentro del marcador.
Body
application/json
Tipo de las direcciones enviadas. Forma parte de la identificación del bloqueo, por lo que debe coincidir con el tipo con el que se registró.
Available options:
phone, email, whatsapp Direcciones a desbloquear. Para una sola dirección puede utilizarse el campo
address.
Minimum array length:
1Dirección única a desbloquear. Alternativa a addresses para un solo valor.
Response
Direcciones procesadas.
Direcciones eliminadas de la lista de bloqueo.
Example:
1
Was this page helpful?

