Previously, when I added numbers to an address book via the API, it did not prepend “+1” to the number. I can still manually add entries via the web portal, and it does not prepend “+1”, but I would like to use the API! Any idea why it could be doing that? I am using PowerShell, and here is a code sample:
$body = @{
“display_name” = “Josh”
“phone_numbers” = @(“1234”)
} | ConvertTo-Json
Invoke-RestMethod -Uri “$baseUri/v2/contact_center/address_books/$addressBookId/contacts” -Method POST -Headers @{ “Authorization” = “Bearer $accessToken”; “Content-Type” = “application/json” } -Body $body
The resulting entry has the phone number “+11234”