Ringba

App · 25 actions

Track and route calls in Ringba: search the call log and tag calls, manage campaigns, publishers and targets, read buyers and tracking numbers, and block or unblock caller numbers.

Actions

ActionWhat it does
Block caller numberBlock calls from a number, from every number with a prefix, or from anonymous callers, in every campaign or one, for good or for some hours.
Create campaignCreate a campaign.
Create publisherAdd a publisher to the account.
Create targetCreate a target that calls are routed to at a phone number.
Delete campaignDelete a campaign from the account.
Delete publisherRemove a publisher from the account.
Delete targetDelete a target so no more calls are routed to it.
Get call detailsGet calls in full by their call IDs, with every routing event Ringba recorded for each.
Get campaignGet one campaign with its publishers, routing and recording settings.
Get numberGet one tracking number with its campaign and publisher.
Get publisherGet one publisher with its settings.
Get targetGet one target with its phone number, time zone and caps.
List accountsList the Ringba accounts the connected token can reach, with their IDs and time zones.
List blocked numbersList the caller numbers and prefixes the account blocks, with the campaign and expiry of each.
List buyersList the account's buyers (who targets' calls are sold to).
List campaignsList the account's campaigns (deleted ones are left out).
List numbersList the account's tracking numbers with their campaigns and publishers.
List publishersList the account's publishers (the sources sending calls).
List targetsList the account's targets (where calls are routed).
Search callsList calls from the call log in a time range, newest first, with their caller, campaign, target, length, conversion and revenue.
Tag callAdd a named note (an annotation tag) to a call, so it can be found and filtered by in the call log.
Unblock caller numberRemove a block, so calls from that number are taken again.
Update campaignRename a campaign or change its country, your own ID for it or call recording.
Update publisherRename a publisher, turn it on or off, or change its settings.
Update targetChange a target's name, phone number, time zone, ring time, sub ID or when calls count toward its caps.

Block caller number

Block calls from a number, from every number with a prefix, or from anonymous callers, in every campaign or one, for good or for some hours.

Inputs

Number to blockphone_numbertextRequired
A number with its country code (+15556661234), a prefix ending in * (+1555* for an area code), or +anonymous.
Campaigncampaign_idtext
The campaign to block it in; leave empty for every campaign. Pick one, or give its ID from an earlier step.
For how many hourshoursnumber
Leave empty to block it until it is unblocked.At least 1.

Outputs

blocked_numberobject
The block
Example output
{
  "blocked_number": {
    "campaignId": "",
    "createdDate": "2026-11-30T21:55:50Z",
    "expiration": "2026-12-01T05:55:50Z",
    "id": "BL3c6bdb6a00644d9b86c3115375382a68",
    "phoneNumber": "+12135551223",
    "timeLimited": true
  }
}

Create campaign

Create a campaign. Add its numbers, publishers and targets in Ringba or with the other steps.

Inputs

NamenametextRequired
The campaign's name, as publishers see it.
Countrycountry_codetext
The two-letter code of the country the campaign's numbers are in, such as US. A new campaign uses US unless another is given.
Your campaign IDuser_campaign_idtext
An ID of your own to track the campaign by in reports.
Record callsrecord_callstrue/false
Record the campaign's calls.

Outputs

campaignobject
The new campaign
Example output
{
  "campaign": {
    "accountId": "RA432a55cf08d848b9aertac7402f3r5y6",
    "affiliates": [
      {
        "id": "AFbd21c4a3274c4382aa98919d5149baf3",
        "name": "You"
      }
    ],
    "countryCode": "US",
    "enabled": true,
    "id": "CA74c0b7f1f3824246b73e72a9238b4bfc",
    "name": "Home insurance",
    "recordSetting": {
      "record": true
    },
    "routes": [],
    "userCampaignId": "home-ins"
  }
}

Create publisher

Add a publisher to the account. No user login is made for it; invite one in Ringba if they need to sign in.

Inputs

NamenametextRequired
The publisher's name.
Can create numberscreate_numberstrue/false
Let the publisher create new numbers, rather than only use the account's existing ones.
Sub IDsub_idtext
A sub ID to track the publisher by.
Can hear recordingsaccess_to_recordingstrue/false
Let the publisher play call recordings. Left empty, the account's setting applies.
Block calls once cappedblock_calls_if_cappedtrue/false
Block the publisher's calls once its payout cap is reached. Left empty, the account's setting applies.

Outputs

publisherobject
The new publisher
Example output
{
  "publisher": {
    "accessToRecordings": true,
    "createNumbers": false,
    "enabled": true,
    "id": "AF8df87f01adff4a35a1835394493dbcfe",
    "isSelf": false,
    "name": "Lead Partners",
    "subId": "lp"
  }
}

Create target

Create a target that calls are routed to at a phone number. Caps and hours are left open; set them in Ringba.

Inputs

NamenametextRequired
The target's name.
Phone numberphone_numbertextRequired
The number calls go to, with the country code, like +15555555555.
Time zonetime_zonetextRequired
The time zone the target's hours and caps follow.One of: Eastern Standard Time (US Eastern), Central Standard Time (US Central), Mountain Standard Time (US Mountain), US Mountain Standard Time (US Mountain, Arizona (no daylight saving)), Pacific Standard Time (US Pacific), Alaskan Standard Time (Alaska), Hawaiian Standard Time (Hawaii), Atlantic Standard Time (Atlantic (Canada)), UTC, GMT Standard Time (London), and 4 more.
Ring time (seconds)connection_timeoutnumber
How long to ring the target before routing the call elsewhere. 0 uses Ringba's default.From 0 to 600.
Sub IDsub_idtext
A sub ID to track the target by.
Buyerbuyer_idtext
The buyer the target belongs to. Pick one, or give its ID from an earlier step.
Count a call toward capscall_incrementtext
When a call counts toward the target's caps.One of: onConnect (When the call connects), onConvert (When the call converts), onRevenue (When the call earns revenue).

Outputs

targetobject
The new target
Example output
{
  "target": {
    "enabled": true,
    "id": "TA2f6961e921ef4b92b7304dd76db8336f",
    "instructions": {
      "callType": "number",
      "connectionTimeOut": 0,
      "number": "+16317918378"
    },
    "name": "Sales desk",
    "schedule": {
      "concurrencyCap": -1,
      "dailyCap": -1,
      "timeZoneId": "Eastern Standard Time"
    },
    "subId": "",
    "targetCallIncrement": "onConvert"
  }
}

Delete campaign

Delete a campaign from the account.

Inputs

Campaigncampaign_idtextRequired
The campaign. Pick one, or give its ID from an earlier step.

Outputs

campaign_idtext
The campaign deleted
deletedtrue/false
True once it is gone
Example output
{
  "campaign_id": "CA74c0b7f1f3824246b73e72a9238b4bfc",
  "deleted": true
}

Delete publisher

Remove a publisher from the account. Its numbers stay in the account.

Inputs

Publisherpublisher_idtextRequired
The publisher. Pick one, or give its ID from an earlier step.

Outputs

deletedtrue/false
True once it is gone
publisher_idtext
The publisher deleted
Example output
{
  "deleted": true,
  "publisher_id": "AF8df87f01adff4a35a1835394493dbcfe"
}

Delete target

Delete a target so no more calls are routed to it.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID from an earlier step.

Outputs

deletedtrue/false
True once it is gone
target_idtext
The target deleted
Example output
{
  "deleted": true,
  "target_id": "TA2f6961e921ef4b92b7304dd76db8336f"
}

Get call details

Get calls in full by their call IDs, with every routing event Ringba recorded for each.

Inputs

Call IDscall_idslistRequired
One or more call IDs (inboundCallId) from 'Search calls'.

Outputs

callslist
The calls
countnumber
How many were returned
Example output
{
  "calls": [
    {
      "callDt": 1764500427115,
      "callLengthInSeconds": 95,
      "campaignId": "CA74c0b7f1f3824246b73e72a9238b4bfc",
      "campaignName": "Home insurance",
      "conversionAmount": 25,
      "events": [
        {
          "name": "CallPlanDetail"
        }
      ],
      "hasConnected": true,
      "hasConverted": true,
      "inboundCallId": "v2cd7lW_KVB95pJnSeRSRBMHuL_MOzcMTn5A8qL5_Hc178aRgTZhj-JA",
      "inboundPhoneNumber": "+17813364178",
      "isLive": false,
      "number": "+18885852294",
      "payoutAmount": 10,
      "profitNet": 14.96,
      "publisherId": "AFbd21c4a3274c4382aa98919d5149baf3",
      "publisherName": "You",
      "recordingUrl": "https://media.ringba.com/recording-public?v=v1&k=abc",
      "targetId": "TA2f6961e921ef4b92b7304dd76db8336f",
      "targetName": "Sales desk"
    }
  ],
  "count": 1
}

Get campaign

Get one campaign with its publishers, routing and recording settings.

Inputs

Campaigncampaign_idtextRequired
The campaign. Pick one, or give its ID from an earlier step.

Outputs

campaignobject
The campaign
Example output
{
  "campaign": {
    "accountId": "RA432a55cf08d848b9aertac7402f3r5y6",
    "affiliates": [
      {
        "id": "AFbd21c4a3274c4382aa98919d5149baf3",
        "name": "You"
      }
    ],
    "countryCode": "US",
    "enabled": true,
    "id": "CA74c0b7f1f3824246b73e72a9238b4bfc",
    "name": "Home insurance",
    "recordSetting": {
      "record": true
    },
    "routes": [],
    "userCampaignId": "home-ins"
  }
}

Get number

Get one tracking number with its campaign and publisher.

Inputs

Number IDnumber_idtextRequired
The number's ID (not the phone number), from 'List numbers'.

Outputs

numberobject
The number
Example output
{
  "number": {
    "affiliate": {
      "id": "AFbd21c4a3274c4382aa98919d5149baf3",
      "name": "You"
    },
    "campaignId": "CA74c0b7f1f3824246b73e72a9238b4bfc",
    "displayNumber": "+18885852294",
    "id": "PNZFWQO0",
    "isTollFree": true,
    "phoneNumber": "+18885852294"
  }
}

Get publisher

Get one publisher with its settings.

Inputs

Publisherpublisher_idtextRequired
The publisher. Pick one, or give its ID from an earlier step.

Outputs

publisherobject
The publisher
Example output
{
  "publisher": {
    "accessToRecordings": true,
    "createNumbers": false,
    "enabled": true,
    "id": "AF8df87f01adff4a35a1835394493dbcfe",
    "isSelf": false,
    "name": "Lead Partners",
    "subId": "lp"
  }
}

Get target

Get one target with its phone number, time zone and caps.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID from an earlier step.

Outputs

targetobject
The target
Example output
{
  "target": {
    "enabled": true,
    "id": "TA2f6961e921ef4b92b7304dd76db8336f",
    "instructions": {
      "callType": "number",
      "connectionTimeOut": 0,
      "number": "+16317918378"
    },
    "name": "Sales desk",
    "schedule": {
      "concurrencyCap": -1,
      "dailyCap": -1,
      "timeZoneId": "Eastern Standard Time"
    },
    "subId": "",
    "targetCallIncrement": "onConvert"
  }
}

List accounts

List the Ringba accounts the connected token can reach, with their IDs and time zones.

Inputs

None.

Outputs

accountslist
The accounts
countnumber
How many were returned
Example output
{
  "accounts": [
    {
      "accountId": "RA432a55cf08d848b9aertac7402f3r5y6",
      "enabled": true,
      "id": "RA432a55cf08d848b9aertac7402f3r5y6",
      "name": "Acme Calls",
      "timeZoneId": "Eastern Standard Time"
    }
  ],
  "count": 1
}

List blocked numbers

List the caller numbers and prefixes the account blocks, with the campaign and expiry of each.

Inputs

None.

Outputs

blocked_numberslist
The blocked numbers
countnumber
How many were returned
Example output
{
  "blocked_numbers": [
    {
      "campaignId": "",
      "createdDate": "2026-11-30T21:55:50Z",
      "expiration": "2026-12-01T05:55:50Z",
      "id": "BL3c6bdb6a00644d9b86c3115375382a68",
      "phoneNumber": "+12135551223",
      "timeLimited": true
    }
  ],
  "count": 1
}

List buyers

List the account's buyers (who targets' calls are sold to).

Inputs

None.

Outputs

buyerslist
The buyers
countnumber
How many were returned
Example output
{
  "buyers": [
    {
      "email": "",
      "enabled": true,
      "id": "BU0db0aea8954049468ed3d2893d0b00e9",
      "name": "Acme Call Buyers"
    }
  ],
  "count": 1
}

List campaigns

List the account's campaigns (deleted ones are left out).

Inputs

Include call countsinclude_statstrue/false
Also return each one's call counts.

Outputs

campaignslist
The campaigns
countnumber
How many were returned
Example output
{
  "campaigns": [
    {
      "accountId": "RA432a55cf08d848b9aertac7402f3r5y6",
      "affiliates": [
        {
          "id": "AFbd21c4a3274c4382aa98919d5149baf3",
          "name": "You"
        }
      ],
      "countryCode": "US",
      "enabled": true,
      "id": "CA74c0b7f1f3824246b73e72a9238b4bfc",
      "name": "Home insurance",
      "recordSetting": {
        "record": true
      },
      "routes": [],
      "userCampaignId": "home-ins"
    }
  ],
  "count": 1
}

List numbers

List the account's tracking numbers with their campaigns and publishers.

Inputs

None.

Outputs

countnumber
How many were returned
numberslist
The numbers
Example output
{
  "count": 1,
  "numbers": [
    {
      "affiliate": {
        "id": "AFbd21c4a3274c4382aa98919d5149baf3",
        "name": "You"
      },
      "campaignId": "CA74c0b7f1f3824246b73e72a9238b4bfc",
      "displayNumber": "+18885852294",
      "id": "PNZFWQO0",
      "isTollFree": true,
      "phoneNumber": "+18885852294"
    }
  ]
}

List publishers

List the account's publishers (the sources sending calls).

Inputs

None.

Outputs

countnumber
How many were returned
publisherslist
The publishers
Example output
{
  "count": 1,
  "publishers": [
    {
      "accessToRecordings": true,
      "createNumbers": false,
      "enabled": true,
      "id": "AF8df87f01adff4a35a1835394493dbcfe",
      "isSelf": false,
      "name": "Lead Partners",
      "subId": "lp"
    }
  ]
}

List targets

List the account's targets (where calls are routed).

Inputs

Include call countsinclude_statstrue/false
Also return each one's call counts.

Outputs

countnumber
How many were returned
targetslist
The targets
Example output
{
  "count": 1,
  "targets": [
    {
      "enabled": true,
      "id": "TA2f6961e921ef4b92b7304dd76db8336f",
      "instructions": {
        "callType": "number",
        "connectionTimeOut": 0,
        "number": "+16317918378"
      },
      "name": "Sales desk",
      "schedule": {
        "concurrencyCap": -1,
        "dailyCap": -1,
        "timeZoneId": "Eastern Standard Time"
      },
      "subId": "",
      "targetCallIncrement": "onConvert"
    }
  ]
}

Search calls

List calls from the call log in a time range, newest first, with their caller, campaign, target, length, conversion and revenue. Gets one page; to see more, run it again with the next offset it gives.

Inputs

Fromstartdate and time
Calls on or after this time. Defaults to 24 hours before the end.
Untilenddate and time
Calls before this time. Defaults to now.
Campaigncampaign_idtext
The campaign to search; leave empty for all. Pick one, or give its ID from an earlier step.
Connected calls onlyconnected_onlytrue/false
Leave out calls that never connected.
Page sizesizenumber
How many calls to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
Skipoffsetnumber
How many calls to skip, such as the next offset from an earlier page.At least 0.

Outputs

callslist
The calls
countnumber
How many were returned
next_offsetnumber
The Skip value for the next page, or 0 if this was the last
partial_resulttrue/false
True if Ringba could only read part of the range
Example output
{
  "calls": [
    {
      "callDt": 1764500427115,
      "callLengthInSeconds": 95,
      "campaignId": "CA74c0b7f1f3824246b73e72a9238b4bfc",
      "campaignName": "Home insurance",
      "conversionAmount": 25,
      "hasConnected": true,
      "hasConverted": true,
      "inboundCallId": "v2cd7lW_KVB95pJnSeRSRBMHuL_MOzcMTn5A8qL5_Hc178aRgTZhj-JA",
      "inboundPhoneNumber": "+17813364178",
      "isLive": false,
      "number": "+18885852294",
      "payoutAmount": 10,
      "profitNet": 14.96,
      "publisherId": "AFbd21c4a3274c4382aa98919d5149baf3",
      "publisherName": "You",
      "recordingUrl": "https://media.ringba.com/recording-public?v=v1&k=abc",
      "targetId": "TA2f6961e921ef4b92b7304dd76db8336f",
      "targetName": "Sales desk"
    }
  ],
  "count": 1,
  "next_offset": 0,
  "partial_result": false
}

Tag call

Add a named note (an annotation tag) to a call, so it can be found and filtered by in the call log.

Inputs

Call IDcall_idtextRequired
The call's ID (inboundCallId) from 'Search calls'.
Tag nametag_nametextRequired
The tag's name, such as Outcome.
Tag valuetag_valuetextRequired
The tag's value, such as Sale.

Outputs

annotatedtrue/false
True once tagged
call_idtext
The call tagged
tagobject
Tag
Example output
{
  "annotated": true,
  "call_id": "v2cd7lW_KVB95pJnSeRSRBMHuL_MOzcMTn5A8qL5_Hc178aRgTZhj-JA",
  "tag": {
    "tagName": "Outcome",
    "tagType": "Annotations",
    "tagValue": "Sale"
  }
}

Unblock caller number

Remove a block, so calls from that number are taken again.

Inputs

Block IDblocked_number_idtextRequired
The block's ID (it starts with BL), from 'List blocked numbers' or 'Block caller number'.

Outputs

blocked_number_idtext
The block removed
unblockedtrue/false
True once removed
Example output
{
  "blocked_number_id": "BL3c6bdb6a00644d9b86c3115375382a68",
  "unblocked": true
}

Update campaign

Rename a campaign or change its country, your own ID for it or call recording. Only the fields given change.

Inputs

Campaigncampaign_idtextRequired
The campaign. Pick one, or give its ID from an earlier step.
Namenametext
A new name. Leave empty to keep it.
Countrycountry_codetext
The two-letter code of the country the campaign's numbers are in, such as US. A new campaign uses US unless another is given.
Your campaign IDuser_campaign_idtext
An ID of your own to track the campaign by in reports.
Record callsrecord_callstrue/false
Record the campaign's calls.

Outputs

campaignobject
The campaign
Example output
{
  "campaign": {
    "accountId": "RA432a55cf08d848b9aertac7402f3r5y6",
    "affiliates": [
      {
        "id": "AFbd21c4a3274c4382aa98919d5149baf3",
        "name": "You"
      }
    ],
    "countryCode": "US",
    "enabled": true,
    "id": "CA74c0b7f1f3824246b73e72a9238b4bfc",
    "name": "Home insurance (US)",
    "recordSetting": {
      "record": true
    },
    "routes": [],
    "userCampaignId": "home-ins"
  }
}

Update publisher

Rename a publisher, turn it on or off, or change its settings. Only the fields given change.

Inputs

Publisherpublisher_idtextRequired
The publisher. Pick one, or give its ID from an earlier step.
Namenametext
A new name. Leave empty to keep it.
Onenabledtrue/false
On lets the publisher send calls; off stops them.
Can create numberscreate_numberstrue/false
Let the publisher create new numbers, rather than only use the account's existing ones.
Sub IDsub_idtext
A sub ID to track the publisher by.
Can hear recordingsaccess_to_recordingstrue/false
Let the publisher play call recordings. Left empty, the account's setting applies.
Block calls once cappedblock_calls_if_cappedtrue/false
Block the publisher's calls once its payout cap is reached. Left empty, the account's setting applies.

Outputs

publisherobject
The publisher
Example output
{
  "publisher": {
    "accessToRecordings": true,
    "createNumbers": false,
    "enabled": true,
    "id": "AF8df87f01adff4a35a1835394493dbcfe",
    "isSelf": false,
    "name": "Lead Partners LLC",
    "subId": "lp"
  }
}

Update target

Change a target's name, phone number, time zone, ring time, sub ID or when calls count toward its caps. Only the fields given change.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID from an earlier step.
Namenametext
A new name. Leave empty to keep it.
Phone numberphone_numbertext
A new number, with the country code. Leave empty to keep it.
Time zonetime_zonetext
A new time zone. Leave empty to keep it.One of: Eastern Standard Time (US Eastern), Central Standard Time (US Central), Mountain Standard Time (US Mountain), US Mountain Standard Time (US Mountain, Arizona (no daylight saving)), Pacific Standard Time (US Pacific), Alaskan Standard Time (Alaska), Hawaiian Standard Time (Hawaii), Atlantic Standard Time (Atlantic (Canada)), UTC, GMT Standard Time (London), and 4 more.
Ring time (seconds)connection_timeoutnumber
How long to ring the target before routing the call elsewhere. 0 uses Ringba's default.From 0 to 600.
Sub IDsub_idtext
A new sub ID. Leave empty to keep it.
Count a call toward capscall_incrementtext
When a call counts toward the target's caps.One of: onConnect (When the call connects), onConvert (When the call converts), onRevenue (When the call earns revenue).

Outputs

targetobject
The target
Example output
{
  "target": {
    "enabled": true,
    "id": "TA2f6961e921ef4b92b7304dd76db8336f",
    "instructions": {
      "callType": "number",
      "connectionTimeOut": 0,
      "number": "+16317918378"
    },
    "name": "Sales desk (East)",
    "schedule": {
      "concurrencyCap": -1,
      "dailyCap": -1,
      "timeZoneId": "Eastern Standard Time"
    },
    "subId": "",
    "targetCallIncrement": "onConvert"
  }
}

On this page