This page shows how two CallGrid accounts trade calls in real time. One account posts bid requests for its calls; the other account receives those bids on a bidding campaign and answers with a price.
- Receiving account (the buyer of the calls): owns a CallGrid bidding campaign. Each source on that campaign has a Grid ID. Bids sent to that Grid ID arrive on this campaign.
- Posting account (the seller of the calls): owns the calls. It builds a destination whose Ping sends a bid request to the receiving account's Grid ID for each call.
The Grid ID always comes from the account that receives the bids. The posting account never needs a Grid ID of its own for this.
Part 1: Receiving account, create the Grid ID#
- Open your bidding campaign and go to the Sources tab.
- Click + New Source to create a source for the posting account, or Add Source to attach an existing one. Each campaign source has its own Grid ID.

On the bidding campaign, open Sources (1). + New Source or Add Source (2) attach a source. Each row has its own Grid ID with a copy button (3) and a Posting instructions icon (4).
- Click the Posting instructions icon (
<>) in the source's row. - In the Posting Instructions window, set Platform to CallGrid and tick the parameters to include (CallerId, State, Zipcode).

CallerId is required (1). Set Platform to CallGrid (2), tick the parameters you accept (3) and copy the Grid ID (4) for the posting account.
- Copy the Grid ID and send it to the posting account. As the window says, the posting account only needs the Grid ID to use the CallGrid RTB integration.
- Tell the posting account which tags you filter on. A field in a bid is kept only if a tag with exactly that name exists in your account, and tag names are case sensitive.
Before going live, review the campaign's Bidding tab:
- Require Caller ID: rejects bids that arrive without a caller ID. The Posting Instructions window marks CallerId as required; in practice a caller ID is always needed for phone number bids, and this setting decides whether it is needed on every bid.
- Require Confirmation Post: makes the posting account confirm a bid before it receives where to send the call. On phone number bids it also lets the caller ID arrive on the confirmation instead of the bid. A SIP bid still needs its caller ID on the bid while Require Caller ID is on.
- Bid rate limits and Bid Expiration: cap how many bids per minute, hour or day the source can send and how long a bid stays valid. Per-source overrides are on the Sources tab.
Part 2: Posting account, send bids to the Grid ID#
- Go to Buyers > Destinations and create a destination for the receiving account. Set Phone Type to Variable and Revenue Type to Variable, then save. The Ping tab is available after the first save.
- On the Ping tab, turn on Ping Integration.
- Turn on Ping Template, choose CallGrid and paste the receiving account's Grid ID. The template fills in the request, parsing and field mapping.
- Check what the template set up:
- Request Data: POST to
https://bid.callgrid.com/api/bid/<Grid ID>with the caller ID and tags, for example"CallerId": "[[tag:InboundNumber]]"and"InboundStateCode": "[[tag:InboundStateCode]]". Add any tags the receiving account filters on. - Acceptance Parsing:
codeEquals1000. - Field Mapping: the template maps the routing target to Variable Phone/SIP, the bid amount to Variable Revenue/Bid and the required duration to Variable Duration. Run a test and confirm the mapped fields appear in the response.
- Request Data: POST to
- In Ping Testing, click Run Ping with a real-looking caller ID and state, and check the response and acceptance result.
- Click Save Ping, then Save Destination, and add the destination to your campaign's routing plan.
Use Minimum Revenue on your campaign or routing group for a price floor rather than an acceptance rule on the bid amount. Keep Max Pings Per Minute inside the receiving account's rate limit.
SIP address or phone number#
CallGrid returns a SIP address by default, and SIP between two CallGrid accounts works. If you need a phone number instead, add pstn=true to the Ping request and map the phone number field the response returns to Variable Phone/SIP. A phone number bid always needs a caller ID.
If the receiving account requires a confirmation#
With Require Confirmation Post on, the bid response does not include where to send the call.
- On the Ping tab, open Confirmation Ping/Post.
- Set Variable Ping ID to the response field that holds the bid
id. It is stored in[[tag:PingId]]. - Confirmation URL:
https://bid.callgrid.com/api/bid/confirmation/[[tag:PingId]]. For phone number bids, addCallerIdas a query parameter; a phone number confirmation without one is rejected. - Map the confirmation response: it returns
dynamicPhoneNumber(phone number bids) ordynamicSipAddress(SIP bids).
The full posting-side walkthrough is in CallGrid Real Time Call Bidding Integration. Developers posting from their own platform can use the CallGrid Bid API guide.
How it works on a live call#
- A call reaches the posting account's campaign, and routing pings this destination with the call's tags.
- The receiving account's campaign applies its bid settings, bid rules, duplicate rules and rate limits, pings its own buyers and answers with a bid or a rejection code.
- If the bid is accepted and wins the posting account's routing, the call is sent to the returned SIP address or phone number.
- The call must arrive before the receiving account's Bid Expiration. Late calls follow its Expired Bid Action (Reject or Route).
Response codes#
Code | Meaning |
|---|---|
1000 | Success, the bid was accepted |
4001 | Disabled: missing or unknown Grid ID, or source not found |
4002 | Campaign, source or grid is paused |
4003 | Invalid caller ID |
4004 | Capacity check failed: every buyer capped, or no buyer accepted |
4005 | Duplicate: the caller was already paid out |
4006 | No phone numbers available for PSTN |
4007 | Caller blocked |
4008 | Duplicate bid |
4009 | Failed tag rules |
4010 | Bid not found (confirmation) |
4011 | Bid expired (confirmation) |
4012 | Bid does not require confirmation |
4013 | All destinations closed |
5001 | Rate limit exceeded (HTTP 429) |
See Call Bidding Error Codes Explained for fixes.
Test it#
- Posting account: run a test call through the campaign that routes to the new destination.
- Posting account: check Reports > Pings for the destination and the ping detail on the call.
- Receiving account: check Reports > Bids for the bid's Outcome and Code.
- Confirm the call connects and both accounts see it in their call history.
Troubleshooting#
Symptom | Likely cause | Fix |
|---|---|---|
Every ping rejected with 4001 | Wrong or cut-off Grid ID | Copy the Grid ID again from the receiving account's Sources tab |
4003 or Caller ID rejections | No caller ID in the Ping body while Require Caller ID is on | Send |
4009 or Tag Rules rejections | A tag the receiving account filters on is missing or misnamed | Send the exact tag names, with matching case |
5001 or Rate Limit rejections | Pinging above the receiving account's rate limit | Lower Max Pings Per Minute, or ask for a source override |
Accepted, but the call is rejected at the receiving account | The call arrived after Bid Expiration | Route faster, or agree a longer Bid Expiration |
Ping accepted but no number to dial | Confirmation required | Set up Confirmation Ping/Post |
Do it with AI#
Ask Claude or ChatGPT through the CallGrid connector: "Show today's bids from my CallGrid source, grouped by outcome and code." Setup guides: Claude and ChatGPT. The connector is read only. It looks things up; you make changes in CallGrid.
Stuck on a step? Ask Griddy.