차단 번호
차단 번호 일괄 생성
한 요청으로 차단 번호 규칙을 최대 500건까지 생성합니다. 각 번호는 독립적으로 처리되며, 실패 항목은 성공 항목을 되돌리지 않고 results에 보고됩니다. 중복 규칙은 skipped로 반환되며, 기존 규칙 교체는 지원하지 않습니다.
POST
/
blocked-numbers
/
bulk
차단 번호 일괄 생성
curl --request POST \
--url https://client-api.tryvox.co/v3/blocked-numbers/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"numbers": [
"<string>"
],
"match_type": "exact",
"specific_numbers": [
"<string>"
],
"direction": "both",
"memo": "<string>",
"is_active": true
}
'import requests
url = "https://client-api.tryvox.co/v3/blocked-numbers/bulk"
payload = {
"numbers": ["<string>"],
"match_type": "exact",
"specific_numbers": ["<string>"],
"direction": "both",
"memo": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
numbers: ['<string>'],
match_type: 'exact',
specific_numbers: ['<string>'],
direction: 'both',
memo: '<string>',
is_active: true
})
};
fetch('https://client-api.tryvox.co/v3/blocked-numbers/bulk', 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://client-api.tryvox.co/v3/blocked-numbers/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'numbers' => [
'<string>'
],
'match_type' => 'exact',
'specific_numbers' => [
'<string>'
],
'direction' => 'both',
'memo' => '<string>',
'is_active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://client-api.tryvox.co/v3/blocked-numbers/bulk"
payload := strings.NewReader("{\n \"numbers\": [\n \"<string>\"\n ],\n \"match_type\": \"exact\",\n \"specific_numbers\": [\n \"<string>\"\n ],\n \"direction\": \"both\",\n \"memo\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://client-api.tryvox.co/v3/blocked-numbers/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"numbers\": [\n \"<string>\"\n ],\n \"match_type\": \"exact\",\n \"specific_numbers\": [\n \"<string>\"\n ],\n \"direction\": \"both\",\n \"memo\": \"<string>\",\n \"is_active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.tryvox.co/v3/blocked-numbers/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"numbers\": [\n \"<string>\"\n ],\n \"match_type\": \"exact\",\n \"specific_numbers\": [\n \"<string>\"\n ],\n \"direction\": \"both\",\n \"memo\": \"<string>\",\n \"is_active\": true\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"input_number": "<string>",
"status": "created",
"normalized_number": "<string>",
"blocked_number": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"scope": "global",
"direction": "inbound",
"match_type": "exact",
"kind": "block",
"is_active": true,
"created_at": 123,
"updated_at": 123,
"specific_numbers": [
"<string>"
],
"memo": "<string>"
},
"reason": "<string>"
}
]
}Authorizations
Body
application/json
일괄 생성할 번호와 공통 규칙 설정입니다.
Was this page helpful?
⌘I
차단 번호 일괄 생성
curl --request POST \
--url https://client-api.tryvox.co/v3/blocked-numbers/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"numbers": [
"<string>"
],
"match_type": "exact",
"specific_numbers": [
"<string>"
],
"direction": "both",
"memo": "<string>",
"is_active": true
}
'import requests
url = "https://client-api.tryvox.co/v3/blocked-numbers/bulk"
payload = {
"numbers": ["<string>"],
"match_type": "exact",
"specific_numbers": ["<string>"],
"direction": "both",
"memo": "<string>",
"is_active": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
numbers: ['<string>'],
match_type: 'exact',
specific_numbers: ['<string>'],
direction: 'both',
memo: '<string>',
is_active: true
})
};
fetch('https://client-api.tryvox.co/v3/blocked-numbers/bulk', 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://client-api.tryvox.co/v3/blocked-numbers/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'numbers' => [
'<string>'
],
'match_type' => 'exact',
'specific_numbers' => [
'<string>'
],
'direction' => 'both',
'memo' => '<string>',
'is_active' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://client-api.tryvox.co/v3/blocked-numbers/bulk"
payload := strings.NewReader("{\n \"numbers\": [\n \"<string>\"\n ],\n \"match_type\": \"exact\",\n \"specific_numbers\": [\n \"<string>\"\n ],\n \"direction\": \"both\",\n \"memo\": \"<string>\",\n \"is_active\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://client-api.tryvox.co/v3/blocked-numbers/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"numbers\": [\n \"<string>\"\n ],\n \"match_type\": \"exact\",\n \"specific_numbers\": [\n \"<string>\"\n ],\n \"direction\": \"both\",\n \"memo\": \"<string>\",\n \"is_active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://client-api.tryvox.co/v3/blocked-numbers/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"numbers\": [\n \"<string>\"\n ],\n \"match_type\": \"exact\",\n \"specific_numbers\": [\n \"<string>\"\n ],\n \"direction\": \"both\",\n \"memo\": \"<string>\",\n \"is_active\": true\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"input_number": "<string>",
"status": "created",
"normalized_number": "<string>",
"blocked_number": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"scope": "global",
"direction": "inbound",
"match_type": "exact",
"kind": "block",
"is_active": true,
"created_at": 123,
"updated_at": 123,
"specific_numbers": [
"<string>"
],
"memo": "<string>"
},
"reason": "<string>"
}
]
}