Telefon numarası satın al
curl --request POST \
--url https://app.whattalk.ai/api/user/phone-numbers/purchase \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "<string>"
}
'import requests
url = "https://app.whattalk.ai/api/user/phone-numbers/purchase"
payload = { "phone_number": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone_number: '<string>'})
};
fetch('https://app.whattalk.ai/api/user/phone-numbers/purchase', 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://app.whattalk.ai/api/user/phone-numbers/purchase",
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([
'phone_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://app.whattalk.ai/api/user/phone-numbers/purchase"
payload := strings.NewReader("{\n \"phone_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://app.whattalk.ai/api/user/phone-numbers/purchase")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.whattalk.ai/api/user/phone-numbers/purchase")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Phone number purchased successfully.",
"data": {
"id": 123,
"phone_number": "+14155551234",
"country_code": "US",
"type": "normal",
"sms_capable": true
}
}
{
"error": "This phone number is already in use."
}
{
"error": "This phone number is not available for purchase. Please search for available numbers first."
}
{
"error": "No payment method found. Please add a payment method to your account."
}
{
"error": "Payment failed. Please update your payment method."
}
{
"error": "Unable to parse phone number. Please provide a valid E.164 format number."
}
{
"error": "Failed to purchase phone number from provider. Please contact support."
}
Telefon Numaraları
Telefon numarası satın al
Özel bir telefon numarası satın alın
POST
/
user
/
phone-numbers
/
purchase
Telefon numarası satın al
curl --request POST \
--url https://app.whattalk.ai/api/user/phone-numbers/purchase \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "<string>"
}
'import requests
url = "https://app.whattalk.ai/api/user/phone-numbers/purchase"
payload = { "phone_number": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone_number: '<string>'})
};
fetch('https://app.whattalk.ai/api/user/phone-numbers/purchase', 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://app.whattalk.ai/api/user/phone-numbers/purchase",
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([
'phone_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://app.whattalk.ai/api/user/phone-numbers/purchase"
payload := strings.NewReader("{\n \"phone_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://app.whattalk.ai/api/user/phone-numbers/purchase")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.whattalk.ai/api/user/phone-numbers/purchase")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Phone number purchased successfully.",
"data": {
"id": 123,
"phone_number": "+14155551234",
"country_code": "US",
"type": "normal",
"sms_capable": true
}
}
{
"error": "This phone number is already in use."
}
{
"error": "This phone number is not available for purchase. Please search for available numbers first."
}
{
"error": "No payment method found. Please add a payment method to your account."
}
{
"error": "Payment failed. Please update your payment method."
}
{
"error": "Unable to parse phone number. Please provide a valid E.164 format number."
}
{
"error": "Failed to purchase phone number from provider. Please contact support."
}
Bu endpoint, arama endpoint’i kullanılarak bulunan bir telefon numarasını satın almanızı sağlar. Platform fiyatlandırmayı, faturalandırmayı ve sağlamayı otomatik olarak yönetir.
Bir telefon numarası satın almadan önce dosyanızda geçerli bir ödeme yönteminiz olmalıdır. Satın alma, otomatik olarak yenilenecek aylık bir abonelik oluşturur.
İstek Gövdesi
string
gerekli
E.164 formatında satın alınacak telefon numarası (ör. +14155551234). Arama endpoint’inden döndürülen bir numara olmalıdır.
Yanıt
string
Başarı mesajı
object
{
"message": "Phone number purchased successfully.",
"data": {
"id": 123,
"phone_number": "+14155551234",
"country_code": "US",
"type": "normal",
"sms_capable": true
}
}
{
"error": "This phone number is already in use."
}
{
"error": "This phone number is not available for purchase. Please search for available numbers first."
}
{
"error": "No payment method found. Please add a payment method to your account."
}
{
"error": "Payment failed. Please update your payment method."
}
{
"error": "Unable to parse phone number. Please provide a valid E.164 format number."
}
{
"error": "Failed to purchase phone number from provider. Please contact support."
}
Nasıl Çalışır
- Ara - Önce mevcut numaraları bulmak için arama endpoint’ini kullanın
- Satın Al - İstediğiniz telefon numarasını bu endpoint’e gönderin
- Otomatik İşleme - Platform:
- Numaranın hala mevcut olduğunu doğrular
- Ülkeye göre doğru fiyatlandırmayı belirler
- Ödeme yönteminizde aylık bir abonelik oluşturur
- Numarayı telefon sağlayıcımız üzerinden sağlar
- Hesabınızda telefon numarası kaydını oluşturur
Telefon numarası satın alımları iade edilemez. Abonelik, numarayı serbest bırakana kadar devam eder.
⌘I

