Retreaver

App · 24 actions

Track and route calls in Retreaver: read the call log, manage campaigns, targets and affiliates, read tracking numbers, and block or unblock callers.

Actions

ActionWhat it does
Block callerAdd a caller's number to the company's suppressed numbers, so their calls are not connected.
Create affiliateAdd an affiliate (publisher).
Create campaignCreate a campaign, optionally sending its callers to a phone number.
Create targetCreate a target that calls can be sent to, at a phone number or SIP address.
Delete affiliateDelete an affiliate.
Delete campaignDelete a campaign.
Delete targetDelete a target.
Get affiliateGet one affiliate (publisher).
Get callGet one call by its UUID, with what happened during it (menu choices, routing, timers).
Get campaignGet one campaign by its CID, with its greeting, menu and timers.
Get companyGet the connected Retreaver company: its name, ID and balance.
Get numberGet one tracking number with its campaign, affiliate and greeting.
Get targetGet one target with its number, routing settings and caps.
List affiliatesList the company's affiliates (publishers) with their AFIDs.
List blocked callersList the caller numbers the company blocks (its suppressed numbers).
List callsList calls from the call log, newest first unless chosen otherwise, with caller, campaign, affiliate, target, duration, conversion and revenue.
List campaignsList the company's campaigns with their CIDs and settings.
List numbersList the company's tracking numbers, optionally for one campaign, affiliate or sub ID.
List targetsList the company's targets (where calls are sent) with their caps and calls in progress.
Reset target's hard capClear the calls counted toward a target's hard cap, so it takes calls again before its usual reset.
Unblock callerRemove a caller's number from the company's suppressed numbers.
Update affiliateChange an affiliate's name or company, or pause it.
Update campaignRename a campaign or change its recording, repeat-caller window or greeting.
Update targetChange a target's number, name, routing order, ring time, call limit or time zone, or pause it.

Block caller

Add a caller's number to the company's suppressed numbers, so their calls are not connected.

Inputs

Phone numberphone_numbertextRequired
The caller's number with its country code, like +15555555555.
Caller can unblockcan_resubscribetrue/false
Let the caller unblock themselves by pressing 7 when a campaign offers it. Defaults to on.

Outputs

suppressed_numberobject
The blocked number
Example output
{
  "suppressed_number": {
    "can_resubscribe": true,
    "created_at": "2026-11-30T21:09:54Z",
    "id": 18996945,
    "number": "+13213749611"
  }
}

Create affiliate

Add an affiliate (publisher). Give a name or a company name.

Inputs

AFIDafidtext
Your own ID for the affiliate. Retreaver makes one if left empty.
First namefirst_nametext
The affiliate's first name.
Last namelast_nametext
The affiliate's last name.
Companycompany_nametext
The affiliate's company name.
Pausedpausedtrue/false
Paused affiliates are left out of routing.

Outputs

affiliateobject
The new affiliate
Example output
{
  "affiliate": {
    "afid": "0002",
    "company_name": "Acme",
    "created_at": "2026-11-03T15:56:01Z",
    "first_name": "Nancy",
    "id": 1,
    "last_name": "Drew"
  }
}

Create campaign

Create a campaign, optionally sending its callers to a phone number. Add timers and further menu options in Retreaver.

Inputs

NamenametextRequired
A label for the campaign.
Send calls toroute_to_numbertext
The phone number callers are connected to, with its country code. Leave empty to set routing up in Retreaver.
Your campaign ID (CID)campaign_cidtext
Your own ID for it. Retreaver makes one if left empty.
Record callsrecord_callstrue/false
Record the campaign's calls.
Repeat-caller window (seconds)dedupe_secondsnumber
Within this many seconds a repeat caller doesn't fire timers again. 0 turns it off.At least 0.
Greetinggreetingtext
Words read to callers before they are connected.
Greeting voicevoicetext
The voice that reads the greeting.One of: Female, Male.

Outputs

campaignobject
The new campaign
Example output
{
  "campaign": {
    "cid": "0044",
    "created_at": "2026-11-01T13:50:21Z",
    "dedupe_seconds": 86400,
    "greeting": {
      "message": "Press one to continue.",
      "voice_gender": "Female"
    },
    "id": 9872,
    "menu_options": [
      {
        "menu_option": {
          "option": "1",
          "target_number": "+18987748833"
        }
      }
    ],
    "name": "Main - Sales",
    "paused": false,
    "record_calls": true,
    "timers": []
  }
}

Create target

Create a target that calls can be sent to, at a phone number or SIP address. It is open around the clock until hours are set in Retreaver.

Inputs

NumbernumbertextRequired
A phone number with its country code (+15555555555) or a SIP address (sip:user@example.com).
Namenametext
A label for the target.
Your target IDtarget_tidtext
Your own ID for the target (its TID).
Priorityprioritynumber
Lower numbers get calls first. Defaults to 1.At least 0.
Weightweightnumber
Shares calls among targets of equal priority. Defaults to 1.At least 0.
Ring time (seconds)timeout_secondsnumber
How long to ring before moving on, 5 to 999. Defaults to 30.From 5 to 999.
Most calls at onceconcurrency_capnumber
The most calls it takes at the same time. Leave empty for no limit.At least 1.
Time zonetime_zonetext
The time zone its business hours follow. Defaults to UTC.One of: Eastern Time (US & Canada) (US Eastern), Central Time (US & Canada) (US Central), Mountain Time (US & Canada) (US Mountain), Arizona, Pacific Time (US & Canada) (US Pacific), Alaska, Hawaii, Atlantic Time (Canada) (Atlantic (Canada)), UTC, London, and 3 more.
Pausedpausedtrue/false
Paused targets are skipped when calls are routed.

Outputs

targetobject
The new target
Example output
{
  "target": {
    "calls_in_progress": 0,
    "caps": [
      {
        "cap": null,
        "filled": 0,
        "id": 707898,
        "type": "Hard"
      }
    ],
    "concurrency_cap": 5,
    "id": 22592,
    "name": "Sales desk",
    "number": "+18668987878",
    "paused": false,
    "priority": 1,
    "tid": "sales",
    "time_zone": "Eastern Time (US & Canada)",
    "timeout_seconds": 30,
    "weight": 1
  }
}

Delete affiliate

Delete an affiliate.

Inputs

Affiliateaffiliate_idtextRequired
The affiliate. Pick one, or give its Retreaver ID (not its AFID).

Outputs

affiliate_idtext
The affiliate deleted
deletedtrue/false
True once it is gone
Example output
{
  "affiliate_id": "1",
  "deleted": true
}

Delete campaign

Delete a campaign.

Inputs

Campaigncampaign_cidtextRequired
The campaign. Pick one, or give its CID.

Outputs

campaign_cidtext
The campaign's CID deleted
deletedtrue/false
True once it is gone
Example output
{
  "campaign_cid": "0044",
  "deleted": true
}

Delete target

Delete a target. Remove it from its campaigns and numbers first.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID.

Outputs

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

Get affiliate

Get one affiliate (publisher).

Inputs

Affiliateaffiliate_idtextRequired
The affiliate. Pick one, or give its Retreaver ID (not its AFID).

Outputs

affiliateobject
The affiliate
Example output
{
  "affiliate": {
    "afid": "0002",
    "company_name": "Acme",
    "created_at": "2026-11-03T15:56:01Z",
    "first_name": "Nancy",
    "id": 1,
    "last_name": "Drew"
  }
}

Get call

Get one call by its UUID, with what happened during it (menu choices, routing, timers).

Inputs

Call UUIDcall_uuidtextRequired
The call's UUID, from 'List calls'.

Outputs

callobject
The call
Example output
{
  "call": {
    "affiliate_name": "Nancy Drew",
    "afid": "0002",
    "call_flow_events": [],
    "caller": "+13015236555",
    "caller_city": "Rockingham",
    "caller_state": "NC",
    "campaign": {
      "id": 9872,
      "name": "Main - Sales"
    },
    "cid": "0044",
    "connected": true,
    "converted": true,
    "created_at": "2026-11-30T16:52:18Z",
    "dialed_call_duration": 2,
    "dialed_number": "+12263399112",
    "end_time": "2026-11-30T16:52:32Z",
    "payout": 5.0,
    "recording_url": "https://example.com/recording.mp3",
    "revenue": 5.0,
    "start_time": "2026-11-30T16:52:18Z",
    "status": "finished",
    "tags": {
      "geo": "301,us"
    },
    "target_id": 22592,
    "target_name": "Sales desk",
    "total_duration": 14,
    "updated_at": "2026-11-30T16:53:00Z",
    "uuid": "f1abfb78-ab8a-4146-9946-8169fbcc6d6c"
  }
}

Get campaign

Get one campaign by its CID, with its greeting, menu and timers.

Inputs

Campaigncampaign_cidtextRequired
The campaign. Pick one, or give its CID.

Outputs

campaignobject
The campaign
Example output
{
  "campaign": {
    "cid": "0044",
    "created_at": "2026-11-01T13:50:21Z",
    "dedupe_seconds": 86400,
    "greeting": {
      "message": "Press one to continue.",
      "voice_gender": "Female"
    },
    "id": 9872,
    "menu_options": [
      {
        "menu_option": {
          "option": "1",
          "target_number": "+18987748833"
        }
      }
    ],
    "name": "Main - Sales",
    "paused": false,
    "record_calls": true,
    "timers": []
  }
}

Get company

Get the connected Retreaver company: its name, ID and balance.

Inputs

None.

Outputs

companyobject
The company
Example output
{
  "company": {
    "balance": "100.0",
    "created_at": "2026-01-17T22:58:17Z",
    "id": 1,
    "name": "Acme"
  }
}

Get number

Get one tracking number with its campaign, affiliate and greeting.

Inputs

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

Outputs

numberobject
The number
Example output
{
  "number": {
    "afid": "0002",
    "campaign_name": "Main - Sales",
    "cid": "0044",
    "id": 5,
    "name": "Publisher Joe",
    "number": "+16479311232",
    "sid": "joe",
    "toll_free": false
  }
}

Get target

Get one target with its number, routing settings and caps.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID.

Outputs

targetobject
The target
Example output
{
  "target": {
    "calls_in_progress": 0,
    "caps": [
      {
        "cap": null,
        "filled": 0,
        "id": 707898,
        "type": "Hard"
      }
    ],
    "concurrency_cap": 5,
    "id": 22592,
    "name": "Sales desk",
    "number": "+18668987878",
    "paused": false,
    "priority": 1,
    "tid": "sales",
    "time_zone": "Eastern Time (US & Canada)",
    "timeout_seconds": 30,
    "weight": 1
  }
}

List affiliates

List the company's affiliates (publishers) with their AFIDs.

Inputs

None.

Outputs

affiliateslist
The affiliates
countnumber
How many were returned
Example output
{
  "affiliates": [
    {
      "afid": "0002",
      "company_name": "Acme",
      "created_at": "2026-11-03T15:56:01Z",
      "first_name": "Nancy",
      "id": 1,
      "last_name": "Drew"
    }
  ],
  "count": 1
}

List blocked callers

List the caller numbers the company blocks (its suppressed numbers).

Inputs

None.

Outputs

countnumber
How many were returned
suppressed_numberslist
The blocked numbers
Example output
{
  "count": 1,
  "suppressed_numbers": [
    {
      "can_resubscribe": true,
      "created_at": "2026-11-30T21:09:54Z",
      "id": 18996945,
      "number": "+13213749611"
    }
  ]
}

List calls

List calls from the call log, newest first unless chosen otherwise, with caller, campaign, affiliate, target, duration, conversion and revenue. Gets one page; to see more, run it again with the next page.

Inputs

Fromcreated_afterdate and time
Only calls that came in on or after this time.
Untilcreated_beforedate and time
Only calls that came in on or before this time.
Sort bysort_bytext
What to sort by.One of: created_at (When the call came in (default)), updated_at (When the call last changed (newest first)).
Orderordertext
Newest or oldest first. Sorting by last change is always newest first.One of: desc (Newest first (default)), asc (Oldest first).
Callercallertext
Only calls from this number, with its country code.
Campaigncampaign_cidtext
Only calls on this campaign. Leave empty for all.
Affiliate AFIDaffiliate_afidtext
Only calls from the affiliate with this AFID.
Target TIDtarget_tidtext
Only calls to the target with this TID.
Sub IDsub_idtext
Only calls with this affiliate sub ID.
Pagepagenumber
Which page of results, from 1.At least 1.
Page sizeper_pagenumber
How many per page, 1 to 100. Defaults to 25.From 1 to 100.

Outputs

callslist
The calls
countnumber
How many were returned
pagenumber
The page returned
Example output
{
  "calls": [
    {
      "affiliate_name": "Nancy Drew",
      "afid": "0002",
      "caller": "+13015236555",
      "caller_city": "Rockingham",
      "caller_state": "NC",
      "campaign": {
        "id": 9872,
        "name": "Main - Sales"
      },
      "cid": "0044",
      "connected": true,
      "converted": true,
      "created_at": "2026-11-30T16:52:18Z",
      "dialed_call_duration": 2,
      "dialed_number": "+12263399112",
      "end_time": "2026-11-30T16:52:32Z",
      "payout": 5.0,
      "recording_url": "https://example.com/recording.mp3",
      "revenue": 5.0,
      "start_time": "2026-11-30T16:52:18Z",
      "status": "finished",
      "tags": {
        "geo": "301,us"
      },
      "target_id": 22592,
      "target_name": "Sales desk",
      "total_duration": 14,
      "updated_at": "2026-11-30T16:53:00Z",
      "uuid": "f1abfb78-ab8a-4146-9946-8169fbcc6d6c"
    }
  ],
  "count": 1,
  "page": 1
}

List campaigns

List the company's campaigns with their CIDs and settings.

Inputs

None.

Outputs

campaignslist
The campaigns
countnumber
How many were returned
Example output
{
  "campaigns": [
    {
      "cid": "0044",
      "created_at": "2026-11-01T13:50:21Z",
      "dedupe_seconds": 86400,
      "greeting": {
        "message": "Press one to continue.",
        "voice_gender": "Female"
      },
      "id": 9872,
      "menu_options": [
        {
          "menu_option": {
            "option": "1",
            "target_number": "+18987748833"
          }
        }
      ],
      "name": "Main - Sales",
      "paused": false,
      "record_calls": true,
      "timers": []
    }
  ],
  "count": 1
}

List numbers

List the company's tracking numbers, optionally for one campaign, affiliate or sub ID.

Inputs

Campaigncampaign_cidtext
Only this campaign's numbers.
Affiliate AFIDaffiliate_afidtext
Only this affiliate's numbers.
Sub IDsub_idtext
Only numbers with this sub ID.
Pagepagenumber
Which page of results, from 1.At least 1.
Page sizeper_pagenumber
How many per page, 1 to 100. Defaults to 25.From 1 to 100.

Outputs

countnumber
How many were returned
numberslist
The numbers
Example output
{
  "count": 1,
  "numbers": [
    {
      "afid": "0002",
      "campaign_name": "Main - Sales",
      "cid": "0044",
      "id": 5,
      "name": "Publisher Joe",
      "number": "+16479311232",
      "sid": "joe",
      "toll_free": false
    }
  ]
}

List targets

List the company's targets (where calls are sent) with their caps and calls in progress.

Inputs

None.

Outputs

countnumber
How many were returned
targetslist
The targets
Example output
{
  "count": 1,
  "targets": [
    {
      "calls_in_progress": 0,
      "caps": [
        {
          "cap": null,
          "filled": 0,
          "id": 707898,
          "type": "Hard"
        }
      ],
      "concurrency_cap": 5,
      "id": 22592,
      "name": "Sales desk",
      "number": "+18668987878",
      "paused": false,
      "priority": 1,
      "tid": "sales",
      "time_zone": "Eastern Time (US & Canada)",
      "timeout_seconds": 30,
      "weight": 1
    }
  ]
}

Reset target's hard cap

Clear the calls counted toward a target's hard cap, so it takes calls again before its usual reset.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID.

Outputs

resettrue/false
True once reset
target_idtext
The target
Example output
{
  "reset": true,
  "target_id": "22592"
}

Unblock caller

Remove a caller's number from the company's suppressed numbers.

Inputs

Phone numberphone_numbertextRequired
The caller's number with its country code, like +15555555555.

Outputs

phone_numbertext
The number unblocked
unsuppressedtrue/false
True once removed
Example output
{
  "phone_number": "+13213749611",
  "unsuppressed": true
}

Update affiliate

Change an affiliate's name or company, or pause it. Only the fields given change.

Inputs

Affiliateaffiliate_idtextRequired
The affiliate. Pick one, or give its Retreaver ID (not its AFID).
First namefirst_nametext
The affiliate's first name.
Last namelast_nametext
The affiliate's last name.
Companycompany_nametext
The affiliate's company name.
Pausedpausedtrue/false
Paused affiliates are left out of routing.

Outputs

affiliateobject
The affiliate
Example output
{
  "affiliate": {
    "afid": "0002",
    "company_name": "Acme Media",
    "created_at": "2026-11-03T15:56:01Z",
    "first_name": "Nancy",
    "id": 1,
    "last_name": "Drew"
  }
}

Update campaign

Rename a campaign or change its recording, repeat-caller window or greeting. Only the fields given change.

Inputs

Campaigncampaign_cidtextRequired
The campaign. Pick one, or give its CID.
Namenametext
A new name. Leave empty to keep it.
Record callsrecord_callstrue/false
Record the campaign's calls.
Repeat-caller window (seconds)dedupe_secondsnumber
Within this many seconds a repeat caller doesn't fire timers again. 0 turns it off.At least 0.
Greetinggreetingtext
Words read to callers before they are connected.
Greeting voicevoicetext
The voice that reads the greeting.One of: Female, Male.

Outputs

campaignobject
The campaign
Example output
{
  "campaign": {
    "cid": "0044",
    "created_at": "2026-11-01T13:50:21Z",
    "dedupe_seconds": 86400,
    "greeting": {
      "message": "Press one to continue.",
      "voice_gender": "Female"
    },
    "id": 9872,
    "menu_options": [
      {
        "menu_option": {
          "option": "1",
          "target_number": "+18987748833"
        }
      }
    ],
    "name": "Main - Sales (US)",
    "paused": false,
    "record_calls": true,
    "timers": []
  }
}

Update target

Change a target's number, name, routing order, ring time, call limit or time zone, or pause it. Only the fields given change.

Inputs

Targettarget_idtextRequired
The target. Pick one, or give its ID.
Numbernumbertext
A new number or SIP address. Leave empty to keep it.
Namenametext
A label for the target.
Your target IDtarget_tidtext
Your own ID for the target (its TID).
Priorityprioritynumber
Lower numbers get calls first. Defaults to 1.At least 0.
Weightweightnumber
Shares calls among targets of equal priority. Defaults to 1.At least 0.
Ring time (seconds)timeout_secondsnumber
How long to ring before moving on, 5 to 999. Defaults to 30.From 5 to 999.
Most calls at onceconcurrency_capnumber
The most calls it takes at the same time. Leave empty for no limit.At least 1.
Time zonetime_zonetext
The time zone its business hours follow. Defaults to UTC.One of: Eastern Time (US & Canada) (US Eastern), Central Time (US & Canada) (US Central), Mountain Time (US & Canada) (US Mountain), Arizona, Pacific Time (US & Canada) (US Pacific), Alaska, Hawaii, Atlantic Time (Canada) (Atlantic (Canada)), UTC, London, and 3 more.
Pausedpausedtrue/false
Paused targets are skipped when calls are routed.

Outputs

targetobject
The target
Example output
{
  "target": {
    "calls_in_progress": 0,
    "caps": [
      {
        "cap": null,
        "filled": 0,
        "id": 707898,
        "type": "Hard"
      }
    ],
    "concurrency_cap": 5,
    "id": 22592,
    "name": "Sales desk",
    "number": "+18668987878",
    "paused": true,
    "priority": 1,
    "tid": "sales",
    "time_zone": "Eastern Time (US & Canada)",
    "timeout_seconds": 30,
    "weight": 1
  }
}

On this page