InboundXPublisher docs

On this page: Step 1 of 7 · Add a buyer

Connect CallGrid

Real-time bid (RTB) Buffer: counts after N seconds 7 steps

Showing sample values. Sign in to use yours →

1

Add InboundX as a buyer

In CallGrid, add a new buyer for InboundX (some platforms call it a target) and choose the ping type, so CallGrid asks us before it sends each call.

From CallGrid's documentation Quoted as the platform documents it.

Where to add itDocumented
Buyers → Destinations → New Destination
The request editorDocumented
Variable Destination with Phone Type: Variable Number; Webhook Integration enabled. Template Mode or Manual; Manual Request Setup includes Method, URL, Headers and + Add Header.
Buyers › Destinations › New Destination
Name
InboundX
Type
RTB ping
Ping URL
·
Dial
·
Illustration: the menu path is from CallGrid's documentation; the screen may look different.
2

Paste your ping URL

Put this in the buyer's ping URL. Your key goes where the sample key is, and CallGrid fills in the bracketed tokens on every call.

Ping URL
https://app.inboundx.io/api/rtb/ping?key=YOUR_PING_KEY&caller_number=[[tag:CallerId]]&caller_state=[[tag:InboundStateCode]]
Keep the key secret: anyone who has it can ping as you.
Not confirmed for CallGrid. Where this goes in CallGrid's screens isn't documented. What its documentation does say is below; confirm the screen with CallGrid.

From CallGrid's documentation Quoted as the platform documents it.

Request methodsDocumented
GETPOST
Caller number tokenDocumented
[[tag:CallerId]]
Caller state tokenDocumented
[[tag:VisitorStateCode|tag:InboundStateCode]]
Caller ZIP tokenDocumented
[[tag:VisitorZipCode|tag:InboundZipCode]]
3

Accept only when we bid

Tell CallGrid how to read our answer. We answer reserved in status when we take the caller; anything else means don't send the call.

Accept the bid when this field
status
equals
reserved
Price field
payout
Not confirmed for CallGrid. Where this goes in CallGrid's screens isn't documented. What its documentation does say is below; confirm the screen with CallGrid.

From CallGrid's documentation Quoted as the platform documents it.

How it reads our answerDocumented
Acceptance Parsing selects JSON/XML fields and comparison conditions. OpenAPI WebhookSchema exposes variablePhone, variableRevenue, variableDuration and variablePingId.
Fields its built-in template readsDocumented
bidAmounttargetNumber
4

Dial the address in the bid

Send the call to the sip_address in each bid, exactly as it is.

Send the call to
sip:YOUR_ROUTE@ADDRESS_FROM_YOUR_SETUP
This one is a sample. Copy yours from your setup message or the portal's Setup page.
Dial the address in this field of each bid
sip_address
Use the address in each bid rather than one you saved.
Not confirmed for CallGrid. Where this goes in CallGrid's screens isn't documented. What its documentation does say is below; confirm the screen with CallGrid.

From CallGrid's documentation Quoted as the platform documents it.

A fixed SIP addressDocumented
SIP destination format has sip: prefix.
The SIP address from each bidNot confirmed: confirm with CallGrid
The sip: prefixNot confirmed: confirm with CallGrid
How it treats the @Not confirmed: confirm with CallGrid
5

Keep the caller's own number

Leave the caller ID as the caller's own number, and send the call within 15 seconds of our bid. We match the call to its bid by that number: your own number, or a hidden one, won't match.

Not confirmed for CallGrid. Where this goes in CallGrid's screens isn't documented. What its documentation does say is below; confirm the screen with CallGrid.

From CallGrid's documentation Quoted as the platform documents it.

Passing the caller ID throughNot confirmed: confirm with CallGrid
Ping timeoutDocumented
template_default_seconds: 10template: Ringba integration
The caller's number on a SIP transferNot confirmed: confirm with CallGrid
6

Send your call ID once the call starts

The call ID is created only when the call arrives, so send it with the call-ID endpoint.

This is our requirement: once the call reaches your platform, call this URL with the caller's number and your platform's own call ID.

Call ID URL
https://app.inboundx.io/api/rtb/call-id?key=YOUR_PING_KEY&caller_number=[[tag:CallerId]]&request_id=CALL_ID_MACRO
We find the call by the caller's number, so send the same number you pinged with.
Not confirmed for CallGrid. How CallGrid sends a request when a call arrives isn't confirmed. Confirm with CallGrid that it can call this URL, and that its call ID exists by then.

From CallGrid's documentation Quoted as the platform documents it.

Call ID tokenNot confirmed: confirm with CallGrid
Call ID at ping timeNot confirmed: confirm with CallGrid
7

Count the call after the buffer

This campaign pays on the buffer: a call counts once it lasts long enough. Our bid carries those seconds in seconds: map that field to CallGrid's minimum call duration for InboundX, or type the seconds below. No postback is needed: the call's length is the conversion.

Map this bid field to the duration
seconds
Seconds the call must last
60
Not confirmed for CallGrid. Where this goes in CallGrid's screens isn't documented. What its documentation does say is below; confirm the screen with CallGrid.

From CallGrid's documentation Quoted as the platform documents it.

Reading a duration from the bidDocumented
api_schema: Webhook.variableDurationpurpose: Parsing criteria for variable duration.destination_duration_type: VARIABLE
Mapping our seconds fieldNot confirmed: confirm with CallGrid

Test my setup

One test ping through your CallGrid setup. We show what arrived, and what to change, as it happens.

Test my setupNo login
Not started

Check your CallGrid setup with one test ping

We'll give you a temporary ping URL. Put it in your platform in place of your real one, call your tracking number from any phone, and see what arrived, in plain words.

  • Your ping arrives
    waiting
  • The caller's number is filled in
    waiting
  • The caller's state is readable
    waiting
  • Every field is under a name we read
    waiting
  • The call arrives inside the hold
    not tested yet
  • The call's caller ID matches the ping
    not tested yet
Nothing is billed and no agent is held: every ping gets a test bid that can't be dialled.
Still stuck? of your setup and we'll point at the wrong field.Every platform at a glance
Your ping keys come from the buyer you send calls to. Ask them for a key, or for help with your setup.© InboundX