Drop a voicemail
curl --request POST \
--url https://collectwiseapi.com/dropVoicemail \
--header 'Content-Type: application/json' \
--header 'collectwise_key: <api-key>' \
--data '
{
"phoneNumber": "+18768828822",
"message": "Hello, this is an important message regarding your account...",
"callbackNumber": "+18768828823",
"voiceGender": "female"
}
'import requests
url = "https://collectwiseapi.com/dropVoicemail"
payload = {
"phoneNumber": "+18768828822",
"message": "Hello, this is an important message regarding your account...",
"callbackNumber": "+18768828823",
"voiceGender": "female"
}
headers = {
"collectwise_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {collectwise_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '+18768828822',
message: 'Hello, this is an important message regarding your account...',
callbackNumber: '+18768828823',
voiceGender: 'female'
})
};
fetch('https://collectwiseapi.com/dropVoicemail', 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://collectwiseapi.com/dropVoicemail",
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([
'phoneNumber' => '+18768828822',
'message' => 'Hello, this is an important message regarding your account...',
'callbackNumber' => '+18768828823',
'voiceGender' => 'female'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"collectwise_key: <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://collectwiseapi.com/dropVoicemail"
payload := strings.NewReader("{\n \"phoneNumber\": \"+18768828822\",\n \"message\": \"Hello, this is an important message regarding your account...\",\n \"callbackNumber\": \"+18768828823\",\n \"voiceGender\": \"female\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("collectwise_key", "<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.post("https://collectwiseapi.com/dropVoicemail")
.header("collectwise_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phoneNumber\": \"+18768828822\",\n \"message\": \"Hello, this is an important message regarding your account...\",\n \"callbackNumber\": \"+18768828823\",\n \"voiceGender\": \"female\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://collectwiseapi.com/dropVoicemail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["collectwise_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phoneNumber\": \"+18768828822\",\n \"message\": \"Hello, this is an important message regarding your account...\",\n \"callbackNumber\": \"+18768828823\",\n \"voiceGender\": \"female\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Voicemail delivered successfully"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}Communications
Drop Voicemail
Sends an automated voicemail to the specified phone number
POST
/
dropVoicemail
Drop a voicemail
curl --request POST \
--url https://collectwiseapi.com/dropVoicemail \
--header 'Content-Type: application/json' \
--header 'collectwise_key: <api-key>' \
--data '
{
"phoneNumber": "+18768828822",
"message": "Hello, this is an important message regarding your account...",
"callbackNumber": "+18768828823",
"voiceGender": "female"
}
'import requests
url = "https://collectwiseapi.com/dropVoicemail"
payload = {
"phoneNumber": "+18768828822",
"message": "Hello, this is an important message regarding your account...",
"callbackNumber": "+18768828823",
"voiceGender": "female"
}
headers = {
"collectwise_key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {collectwise_key: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phoneNumber: '+18768828822',
message: 'Hello, this is an important message regarding your account...',
callbackNumber: '+18768828823',
voiceGender: 'female'
})
};
fetch('https://collectwiseapi.com/dropVoicemail', 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://collectwiseapi.com/dropVoicemail",
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([
'phoneNumber' => '+18768828822',
'message' => 'Hello, this is an important message regarding your account...',
'callbackNumber' => '+18768828823',
'voiceGender' => 'female'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"collectwise_key: <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://collectwiseapi.com/dropVoicemail"
payload := strings.NewReader("{\n \"phoneNumber\": \"+18768828822\",\n \"message\": \"Hello, this is an important message regarding your account...\",\n \"callbackNumber\": \"+18768828823\",\n \"voiceGender\": \"female\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("collectwise_key", "<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.post("https://collectwiseapi.com/dropVoicemail")
.header("collectwise_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phoneNumber\": \"+18768828822\",\n \"message\": \"Hello, this is an important message regarding your account...\",\n \"callbackNumber\": \"+18768828823\",\n \"voiceGender\": \"female\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://collectwiseapi.com/dropVoicemail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["collectwise_key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phoneNumber\": \"+18768828822\",\n \"message\": \"Hello, this is an important message regarding your account...\",\n \"callbackNumber\": \"+18768828823\",\n \"voiceGender\": \"female\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Voicemail delivered successfully"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}Authorizations
Body
application/json
Voicemail details
Phone number in E.164 format (e.g., +18768828822)
Pattern:
^\+[1-9]\d{10,14}$The voicemail message to be delivered
Callback phone number in E.164 format
Pattern:
^\+[1-9]\d{10,14}$Gender of the voice to use for the voicemail
Available options:
male, female Response
Voicemail sent successfully
Example:
"Voicemail delivered successfully"
⌘I
