Overview#
This page covers selling calls from CallGrid to a buyer that runs on Retreaver. For each call, CallGrid pings the buyer's Retreaver RTB endpoint, reads whether Retreaver reserved the call and at what payout, and routes the call to the Retreaver number when the ping is accepted.
In CallGrid this is a destination with a Ping, configured on the destination's Ping tab.
Prerequisites#
- The buyer's Retreaver RTB key and the publisher ID for your traffic.
- An agreement with the buyer on payout, billable duration and the caller data they need.
- A CallGrid campaign whose calls carry a caller ID (
CallerId).
Step 1: Create the buyer and destination#
- Under Buyers, create a buyer for the Retreaver account.
- Go to Destinations > + New Destination. On the Settings tab, enter Name, Buyer, Timezone and Business Hours.
- Under Call Settings, set Phone Type:
- Variable if Retreaver returns the number to dial in the ping response.
- Phone if the buyer gave you a fixed Retreaver number.
- Expand Advanced under Call Settings and turn on Match Connect Duration (see Step 5).
- Click Save Destination, reopen the destination and go to the Ping tab.
Step 2: Build the ping#
- Turn on Ping Integration.
- Turn on Ping Template, choose Retreaver in the template picker (Real Time Bidding group) and enter the buyer's RTB Key. Publisher ID is optional.
- The template builds the request. To check it, or to build it by hand, use Request Data:
- Method: POST, Content Type JSON, body
{} - URL:
Text https://rtb.retreaver.com/rtbs.json?key=YOUR_RTB_KEY&publisher_id=YOUR_PUBLISHER_ID&caller_number=[[tag:CallerId]] - The template also sends
caller_stateandcaller_zip. - Timeout: short enough to finish inside the source's own ping timeout.
- Use Static IP for requests: turn on only if the buyer allowlists IP addresses. Requests then come from
3.232.249.88and54.160.65.103.
- Method: POST, Content Type JSON, body
- Add any other caller data the buyer asks for with tag macros, for example
[[tag:InboundZipCode]]or[[tag:InboundStateCode]]. Tag names are case sensitive.

Turn on Ping Template (2), choose Retreaver (3) and enter the RTB Key. Publisher ID is optional (4).
Step 3: Acceptance Parsing#
- Parsing Type: JSON
- Operators: Equals, Not Equal To, Greater Than, Less Than
The standard rule is retreaver_payout Greater Than 0, which means Retreaver reserved a buyer for the call at a payout.
Goal | Rule |
|---|---|
Accept paid reservations |
|
Require a minimum payout |
|
Minimum Revenue on the campaign or routing group is another way to set a floor.
Step 4: Field Mapping#
Field Mapping | Response path | Effect |
|---|---|---|
Variable Phone/SIP |
| The number to dial (Phone Type Variable) |
Variable Revenue/Bid |
| Revenue for the call |
Variable Duration |
| Seconds the call must last to convert |
On the Settings tab, set Revenue Type to Variable and the Billable Type and duration that match your agreement. Use Value Extraction to save uuid into a custom tag if you want it; Retreaver uses this ID to look up why a request found no buyer.

The Retreaver template accepts on retreaver_payout Greater Than 0 (1) and maps inbound_number, retreaver_payout and retreaver_seconds (2).
Retreaver response#
Response shape from Retreaver's RTB documentation. Values are examples; check yours with Run Ping.
{ "uuid": "66b905ef-bc03-420e-ad43-e8eeae03918f", "status": "reserved", "retreaver_payout": 25.5, "retreaver_seconds": 90, "inbound_number": "+18005551234", "expires_at": "2026-10-12T16:16:18.246Z"}Field | Meaning |
|---|---|
| Retreaver's ID for this RTB request |
| Result of the request (see below) |
| Payout for the call |
| Duration the call must reach to convert |
| Number to send the call to |
| When the reservation expires |
Status values in Retreaver's RTB documentation include reserved (a buyer was reserved), no-target (no buyer matched the call) and rejected (Retreaver could not reach a buyer). When no buyer is available, the response has no inbound_number.
Step 5: Duration matching#
Retreaver answers the call and plays a ringing tone while it connects its own buyer, so connected time in CallGrid can start earlier than on the buyer's side.
- Match Connect Duration: "Turn this on when sending calls to Ringba, Retreaver, TrackDrive or any system that answers the call and plays a ringing tone." It always applies to Retreaver destinations, whether or not the box is ticked, so turning it on does no harm. It trims ring time after the call and can under-report by up to about one second.
- True Connect (Beta): an in-call alternative that removes the difference on both sides. Ask your account manager before turning it on.
Step 6: Test and go live#
- In Ping Testing, set a test value for
CallerIdunder Test Variables and click Run Ping. - Check the response. Confirm acceptance passes on
retreaver_payoutabove0and that the number, payout and duration map. - Click Save Ping, then Save Destination, add the destination to the campaign's routing and place a live test call.
How it works on a call#
- A call or bid request arrives on the CallGrid campaign.
- CallGrid pings Retreaver with the caller's number.
- Retreaver checks its campaigns and returns a status and payout.
- If acceptance passes, the destination competes in routing using its revenue.
- If it wins, CallGrid dials the Retreaver number.
A busy result after an accepted ping is normal when the buyer has no agent free. It is not a CallGrid fault; with Failover Routing on, the call moves on to the next destination.
Troubleshooting#
Symptom | Check |
|---|---|
Authentication error | RTB key and publisher ID; key still active on the buyer's side |
| Buyer's Retreaver campaign criteria, capacity or hours; required caller data missing |
Accepted but not routed | Phone Type and the Variable Phone/SIP mapping |
Duration disputes | Match Connect Duration on; compare Connected Call Duration, which is what CallGrid bills on |
Pings time out | Destination Timeout. The Webhook Timeout source override (campaign Sources tab) sets the ping timeout for that source, with a 1 second minimum |
Buyer blocks requests by IP | Turn on Use Static IP for requests and give the buyer both IPs |
The call timeline shows every ping, response and acceptance decision.
Best practices#
- Use one destination per Retreaver publisher ID or buyer program so performance is reported separately.
- Set a payout floor instead of accepting every reservation.
- Agree billable duration in writing and set it on the destination.
Do it with AI#
Ask Claude or ChatGPT. Try: "How many pings to my Retreaver destination were accepted yesterday, and how many timed out?" Claude and ChatGPT need the CallGrid connector turned on (setup guides for Claude and ChatGPT).
The connector is read only. It looks things up and reads your data. You make the changes in CallGrid.
Stuck on a step? Ask Griddy.