Ana içeriğe atla
GET
/
user
/
phone-numbers
/
all
Tüm telefon numaralarını getir
curl --request GET \
  --url https://app.whattalk.ai/api/user/phone-numbers/all
{
  "data": [
    {
      "id": 1,
      "phone_number": "+14155551234",
      "country_code": "US",
      "type": "normal",
      "type_label": "Dedicated Number",
      "sms_capable": true,
      "region": "us1",
      "has_active_subscription": true,
      "created_at": "2025-01-08T10:30:00.000000Z"
    },
    {
      "id": 2,
      "phone_number": "+442071234567",
      "country_code": "GB",
      "type": "normal",
      "type_label": "Dedicated Number",
      "sms_capable": false,
      "region": "us1",
      "has_active_subscription": true,
      "created_at": "2025-01-05T14:20:00.000000Z"
    }
  ]
}
Bu endpoint, hesabınızla ilişkili tüm telefon numaralarının listesini, abonelik durumları ve yetenekleri dahil olmak üzere döndürür.

Yanıt

data
array
Telefon numarası nesneleri dizisi
{
  "data": [
    {
      "id": 1,
      "phone_number": "+14155551234",
      "country_code": "US",
      "type": "normal",
      "type_label": "Dedicated Number",
      "sms_capable": true,
      "region": "us1",
      "has_active_subscription": true,
      "created_at": "2025-01-08T10:30:00.000000Z"
    },
    {
      "id": 2,
      "phone_number": "+442071234567",
      "country_code": "GB",
      "type": "normal",
      "type_label": "Dedicated Number",
      "sms_capable": false,
      "region": "us1",
      "has_active_subscription": true,
      "created_at": "2025-01-05T14:20:00.000000Z"
    }
  ]
}
SMS özellikli ve aktif abonelikleri olan yalnızca telefon numaralarını döndüren eski bir endpoint GET /user/phone-numbers de mevcuttur. SMS yeteneği veya abonelik durumundan bağımsız olarak tüm telefon numaralarına ihtiyacınız varsa bu /all endpoint’ini kullanın.