curl --request POST \
--url https://collectwiseapi.com/rpcCall \
--header 'Content-Type: application/json' \
--header 'collectwise_key: <api-key>' \
--data '
{
"toNumber": "+18768828822",
"creditorName": "ABC Bank",
"debtorName": "John Doe",
"dob": "1980-01-01",
"voicemailMessage": "Hello, this is an important message regarding your account...",
"agencyName": "Midwest Collections",
"agentName": "Nancy",
"successNumber": "+18768828824",
"callbackNumber": "+18768828825",
"customMessage": "This call is regarding an important financial matter that requires your immediate attention.",
"instantTransferToggle": false
}
'import requests
url = "https://collectwiseapi.com/rpcCall"
payload = {
"toNumber": "+18768828822",
"creditorName": "ABC Bank",
"debtorName": "John Doe",
"dob": "1980-01-01",
"voicemailMessage": "Hello, this is an important message regarding your account...",
"agencyName": "Midwest Collections",
"agentName": "Nancy",
"successNumber": "+18768828824",
"callbackNumber": "+18768828825",
"customMessage": "This call is regarding an important financial matter that requires your immediate attention.",
"instantTransferToggle": False
}
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({
toNumber: '+18768828822',
creditorName: 'ABC Bank',
debtorName: 'John Doe',
dob: '1980-01-01',
voicemailMessage: 'Hello, this is an important message regarding your account...',
agencyName: 'Midwest Collections',
agentName: 'Nancy',
successNumber: '+18768828824',
callbackNumber: '+18768828825',
customMessage: 'This call is regarding an important financial matter that requires your immediate attention.',
instantTransferToggle: false
})
};
fetch('https://collectwiseapi.com/rpcCall', 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/rpcCall",
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([
'toNumber' => '+18768828822',
'creditorName' => 'ABC Bank',
'debtorName' => 'John Doe',
'dob' => '1980-01-01',
'voicemailMessage' => 'Hello, this is an important message regarding your account...',
'agencyName' => 'Midwest Collections',
'agentName' => 'Nancy',
'successNumber' => '+18768828824',
'callbackNumber' => '+18768828825',
'customMessage' => 'This call is regarding an important financial matter that requires your immediate attention.',
'instantTransferToggle' => false
]),
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/rpcCall"
payload := strings.NewReader("{\n \"toNumber\": \"+18768828822\",\n \"creditorName\": \"ABC Bank\",\n \"debtorName\": \"John Doe\",\n \"dob\": \"1980-01-01\",\n \"voicemailMessage\": \"Hello, this is an important message regarding your account...\",\n \"agencyName\": \"Midwest Collections\",\n \"agentName\": \"Nancy\",\n \"successNumber\": \"+18768828824\",\n \"callbackNumber\": \"+18768828825\",\n \"customMessage\": \"This call is regarding an important financial matter that requires your immediate attention.\",\n \"instantTransferToggle\": false\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/rpcCall")
.header("collectwise_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"toNumber\": \"+18768828822\",\n \"creditorName\": \"ABC Bank\",\n \"debtorName\": \"John Doe\",\n \"dob\": \"1980-01-01\",\n \"voicemailMessage\": \"Hello, this is an important message regarding your account...\",\n \"agencyName\": \"Midwest Collections\",\n \"agentName\": \"Nancy\",\n \"successNumber\": \"+18768828824\",\n \"callbackNumber\": \"+18768828825\",\n \"customMessage\": \"This call is regarding an important financial matter that requires your immediate attention.\",\n \"instantTransferToggle\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://collectwiseapi.com/rpcCall")
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 \"toNumber\": \"+18768828822\",\n \"creditorName\": \"ABC Bank\",\n \"debtorName\": \"John Doe\",\n \"dob\": \"1980-01-01\",\n \"voicemailMessage\": \"Hello, this is an important message regarding your account...\",\n \"agencyName\": \"Midwest Collections\",\n \"agentName\": \"Nancy\",\n \"successNumber\": \"+18768828824\",\n \"callbackNumber\": \"+18768828825\",\n \"customMessage\": \"This call is regarding an important financial matter that requires your immediate attention.\",\n \"instantTransferToggle\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "RPC call initiated successfully",
"callId": "<string>"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}RPC Call
Initiates an RPC (Right Party Contact) call to verify debtor identity
curl --request POST \
--url https://collectwiseapi.com/rpcCall \
--header 'Content-Type: application/json' \
--header 'collectwise_key: <api-key>' \
--data '
{
"toNumber": "+18768828822",
"creditorName": "ABC Bank",
"debtorName": "John Doe",
"dob": "1980-01-01",
"voicemailMessage": "Hello, this is an important message regarding your account...",
"agencyName": "Midwest Collections",
"agentName": "Nancy",
"successNumber": "+18768828824",
"callbackNumber": "+18768828825",
"customMessage": "This call is regarding an important financial matter that requires your immediate attention.",
"instantTransferToggle": false
}
'import requests
url = "https://collectwiseapi.com/rpcCall"
payload = {
"toNumber": "+18768828822",
"creditorName": "ABC Bank",
"debtorName": "John Doe",
"dob": "1980-01-01",
"voicemailMessage": "Hello, this is an important message regarding your account...",
"agencyName": "Midwest Collections",
"agentName": "Nancy",
"successNumber": "+18768828824",
"callbackNumber": "+18768828825",
"customMessage": "This call is regarding an important financial matter that requires your immediate attention.",
"instantTransferToggle": False
}
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({
toNumber: '+18768828822',
creditorName: 'ABC Bank',
debtorName: 'John Doe',
dob: '1980-01-01',
voicemailMessage: 'Hello, this is an important message regarding your account...',
agencyName: 'Midwest Collections',
agentName: 'Nancy',
successNumber: '+18768828824',
callbackNumber: '+18768828825',
customMessage: 'This call is regarding an important financial matter that requires your immediate attention.',
instantTransferToggle: false
})
};
fetch('https://collectwiseapi.com/rpcCall', 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/rpcCall",
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([
'toNumber' => '+18768828822',
'creditorName' => 'ABC Bank',
'debtorName' => 'John Doe',
'dob' => '1980-01-01',
'voicemailMessage' => 'Hello, this is an important message regarding your account...',
'agencyName' => 'Midwest Collections',
'agentName' => 'Nancy',
'successNumber' => '+18768828824',
'callbackNumber' => '+18768828825',
'customMessage' => 'This call is regarding an important financial matter that requires your immediate attention.',
'instantTransferToggle' => false
]),
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/rpcCall"
payload := strings.NewReader("{\n \"toNumber\": \"+18768828822\",\n \"creditorName\": \"ABC Bank\",\n \"debtorName\": \"John Doe\",\n \"dob\": \"1980-01-01\",\n \"voicemailMessage\": \"Hello, this is an important message regarding your account...\",\n \"agencyName\": \"Midwest Collections\",\n \"agentName\": \"Nancy\",\n \"successNumber\": \"+18768828824\",\n \"callbackNumber\": \"+18768828825\",\n \"customMessage\": \"This call is regarding an important financial matter that requires your immediate attention.\",\n \"instantTransferToggle\": false\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/rpcCall")
.header("collectwise_key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"toNumber\": \"+18768828822\",\n \"creditorName\": \"ABC Bank\",\n \"debtorName\": \"John Doe\",\n \"dob\": \"1980-01-01\",\n \"voicemailMessage\": \"Hello, this is an important message regarding your account...\",\n \"agencyName\": \"Midwest Collections\",\n \"agentName\": \"Nancy\",\n \"successNumber\": \"+18768828824\",\n \"callbackNumber\": \"+18768828825\",\n \"customMessage\": \"This call is regarding an important financial matter that requires your immediate attention.\",\n \"instantTransferToggle\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://collectwiseapi.com/rpcCall")
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 \"toNumber\": \"+18768828822\",\n \"creditorName\": \"ABC Bank\",\n \"debtorName\": \"John Doe\",\n \"dob\": \"1980-01-01\",\n \"voicemailMessage\": \"Hello, this is an important message regarding your account...\",\n \"agencyName\": \"Midwest Collections\",\n \"agentName\": \"Nancy\",\n \"successNumber\": \"+18768828824\",\n \"callbackNumber\": \"+18768828825\",\n \"customMessage\": \"This call is regarding an important financial matter that requires your immediate attention.\",\n \"instantTransferToggle\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "RPC call initiated successfully",
"callId": "<string>"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}{
"code": 400,
"message": "Invalid input: debtorName is required"
}Authorizations
Body
RPC call details
- Option 1
- Option 2
Phone number to call in E.164 format (e.g., +18768828822)
^\+[1-9]\d{10,14}$Name of the creditor
Name of the debtor
Debtor's date of birth (YYYY-MM-DD). Either dob or last4SSN must be provided
Phone number in E.164 format that missed calls will be routed to upon callbacks
^\+[1-9]\d{10,14}$Last 4 digits of debtor's SSN. Either dob or last4SSN must be provided
^\d{4}$Message to leave if the call goes to voicemail
Optional name of the collection agency
Optional name of the agent making the call, defaults to Nancy
Optional phone number in E.164 format to route the call to upon successful RPC
^\+[1-9]\d{10,14}$Optional message to be played after introduction but before RPC verification
When true, transfers the call to successNumber immediately after name verification, bypassing DOB/SSN verification
