CallsFlow Plus

Every endpoint of the CallsFlow Plus API, with its fields and an example. New to the API? Start with Using the API: it covers keys, limits, errors and paging.

  • Base address: https://app.callsflowplus.com/api/v1/
  • Machine-readable spec (OpenAPI): https://app.callsflowplus.com/api/v1/openapi.json
  • Sign in: send Authorization: Bearer cfp_YOUR_KEY on every request.
  • Format: requests and answers are JSON. For POST, PUT and PATCH, also send Content-Type: application/json.
  • Ids are long unique codes like 3f2b8c1e-.... An id that does not exist in your account gives 404, except a target_id inside a campaign's targets list, which gives 422. A malformed cursor also gives 422.
  • Times are ISO 8601 in UTC, such as 2026-11-01T00:00:00Z.
  • Money fields end in _cents: whole cents, so 4000 is $40.00.

Read only keys can use every GET endpoint. Read & write keys can use all of them. The API never deletes. To turn something off, PATCH it with {"status": "paused"}.

Lists and paging

Every list endpoint (campaigns, publishers, sources, buyers, targets, numbers, calls) answers with:

{ "data": [ ... ], "next_cursor": "..." }
  • limit: items per page, 1 to 100. Default 50.
  • cursor: the next_cursor from the page before. When next_cursor is null, there are no more pages.
  • Newest first.

Calls

List calls

GET /calls

Calls that arrived in a time window. Query parameters, all optional:

Parameter What it does
from Start of the window, ISO 8601 with a timezone (use Z for UTC). Included.
to End of the window, ISO 8601 with a timezone. Not included. Default: now.
campaign_id, publisher_id, source_id, buyer_id Only calls for that campaign, publisher, source or buyer.
status Only calls with exactly this status (an exact match), such as completed. The values are listed under the call fields below.
imported true for only calls brought in from another platform (history imports), false for only calls the platform handled itself. Leave it out to get both. Anything else gives 422.
limit, cursor Paging, as above.

With no from and to, you get the last 24 hours. The window can be at most 31 days. A window with no timezone, an end before the start, or more than 31 days gives 422.

When you page through calls, pin from and to: send the same two values on every page. If you leave to out, "now" moves between pages and your pages will not line up.

curl "https://app.callsflowplus.com/api/v1/calls?from=2026-11-01T00:00:00Z&to=2026-11-02T00:00:00Z&campaign_id=CAMPAIGN_ID&limit=100" \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Next page: the same request plus &cursor=NEXT_CURSOR.

Each call has these fields:

Field Meaning
id The call's id.
status One of ringing (in progress), completed, failed, rejected_no_bid, rejected_bid_expired, rejected_gated, rejected_screened or rejected_credit (refused because the account had no credit). Every rejected_* value means the call was refused; reject_reason gives the detail.
caller The caller's phone number.
inbound_number The number that was dialed.
campaign_id, publisher_id, source_id, buyer_id, target_id What the call was routed through. Empty when it does not apply.
arrived_at, answered_at, ended_at Times. Empty until they happen.
connected_seconds How long the call was connected.
revenue_cents What the call earned from the buyer, including any adjustments made to it (the same figure the app shows).
payout_cents What the call pays the publisher, including any adjustments made to it (the same figure the app shows).
billable_buyer, billable_pub Whether the call counted as billable for the buyer and for the publisher. A call an adjustment added buyer money to counts as billable for the buyer, as in the app.
duplicate true if the call was flagged as a duplicate.
reject_reason Why a rejected call was refused.
hangup_by Who ended the call.
dispute_status none, open or resolved.
tags Tags your publishers sent with the call.
imported Where an imported call came from: ringba, retreaver or trackdrive. Empty for calls the platform handled itself. An imported call is history: it counts in totals but never moves money.

Get one call

GET /calls/{call_id}

curl https://app.callsflowplus.com/api/v1/calls/CALL_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Answers with one call, with the fields above.

Reports

Summary

GET /reports/summary

Counts and money for a time window, grouped the way you choose.

Parameter What it does
from, to The window. Same rules as calls: timezone required, default the last 24 hours, at most 31 days.
group_by day (default), campaign, publisher, source or buyer. Anything else gives 422.
imported true for only imported calls, false for only calls the platform handled itself. Leave it out to count both. Anything else gives 422.
curl "https://app.callsflowplus.com/api/v1/reports/summary?from=2026-11-01T00:00:00Z&to=2026-11-08T00:00:00Z&group_by=campaign" \
  -H "Authorization: Bearer cfp_YOUR_KEY"
{
  "data": [
    { "group": "3f2b8c1e-...", "name": "Medicare FL", "calls": 412, "connected": 301,
      "billable": 188, "revenue_cents": 752000, "payout_cents": 470000 }
  ]
}
Field Meaning
group What the row is for: the date (2026-11-01) for day, otherwise the id.
name The campaign, publisher, source or buyer name. Empty for day.
calls All calls.
connected Calls that connected.
billable Calls that counted as billable for the buyer, including any an adjustment made billable, matching the app's reports.
revenue_cents, payout_cents Totals for the group, including adjustments, matching the app's reports.

The summary is not paged. It answers with all groups at once.

Campaigns

List campaigns

GET /campaigns

curl "https://app.callsflowplus.com/api/v1/campaigns?limit=20" \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Fields: id, name, key, vertical, kind (call or lead), status (active or paused), call_mode (rtb or static), schedule, daily_cap, dupe_window_hours, dupe_action, require_state, require_caller_id, routing_mode, created_at.

Get one campaign

GET /campaigns/{campaign_id}

The same fields, plus two lists:

  • targets: the campaign's routing. Each entry has target_id, priority_tier, weight, enabled, price_cents, billable_threshold_seconds and billing_trigger. The last three are empty when the target's own settings apply.
  • sources: the sources attached to the campaign and their terms. Each entry has source_id, payout_model, fixed_cents, revshare_pct, margin_cents, max_payout_cents, billable_threshold_seconds, threshold_mode, threshold_adjust_seconds, payout_trigger, active, route_mode, concurrency_cap, cap_hourly_calls, cap_daily_calls, cap_total_calls, cap_count_on, payout_exceptions (in check order, each scope target, buyer or line (every buyer), kind (set or adjust), target_id, buyer_id, payout_model, payout_cents, revshare_pct, billable_threshold_seconds, adjust_cents, adjust_pct, adjust_seconds, label, schedule, filters, starts_on, ends_on).
curl https://app.callsflowplus.com/api/v1/campaigns/CAMPAIGN_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Create a campaign

POST /campaigns (read & write key). Answers 201 with the new campaign, as above.

Required:

  • name: the campaign's name.
  • key: a short code for the campaign. It must be unique in your account (a key already in use gives 409) and cannot be changed later.

Common optional fields:

Field Default Meaning
status paused paused or active. New campaigns start paused unless you say otherwise.
kind call call or lead. Cannot be changed later.
call_mode rtb Call campaigns only. rtb also answers buyers' real-time pings; static takes calls on tracking numbers only.
vertical empty A label, such as medicare.
daily_cap no cap Most calls per day.
schedule always open Open hours, as in the app: {"tz": "America/New_York", "hours": {"mon": [["09:00", "17:00"]]}}. Days are mon to sun; a day you leave out is closed.
dupe_window_hours 24 How far back a repeat caller counts as a duplicate.
dupe_action block block or route_flag.
dupe_count_on connected Which earlier calls make a caller a duplicate: call, connected, converted or duration. duration also needs dupe_min_seconds (1 to 3600).
dupe_pay_publisher true Whether duplicates still pay the publisher.
require_state false Refuse a ping whose caller state cannot be found.
require_caller_id true Refuse a ping with no caller ID.
routing_mode priority priority, rpc or rpc_weighted.
repeat_ping_seconds 0 Refuse a ping for a caller already pinged on this campaign within this many seconds (0 to 3600; 0 is off).

The campaign's bid timing and revenue-per-call settings (auction_deadline_ms, bid_ttl_seconds, failover_budget_seconds, accept_zero_bids, honor_expired_bid, route_stale_calls, the rpc_* fields and screening_provider_ids) are also accepted, with the same defaults and limits as the app. The OpenAPI file lists them all.

RTB campaigns and your first number. Creating an RTB campaign here (a call campaign with call_mode rtb, which is the default), or switching a campaign to RTB, does exactly what the app does. If your account has no pool number yet and has credit, the first pool number is set up for you automatically. With no credit, it waits until you add credit. The API has no endpoint to buy numbers. If you do not want RTB, send "call_mode": "static".

curl -X POST https://app.callsflowplus.com/api/v1/campaigns \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Medicare FL", "key": "medicare-fl", "vertical": "medicare", "daily_cap": 500}'

Change a campaign

PATCH /campaigns/{campaign_id} (read & write key). Send only the fields you want to change. Answers with the updated campaign.

You can change everything in the list above except key and kind. Sending null for daily_cap, vertical, dupe_min_seconds or schedule clears it. Fields that must always have a value cannot be set to null.

To pause a campaign:

curl -X PATCH https://app.callsflowplus.com/api/v1/campaigns/CAMPAIGN_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "paused"}'

Set a campaign's routing

PUT /campaigns/{campaign_id}/targets (read & write key)

Sets which targets the campaign sends calls to. This replaces the whole list: send every target you want to keep. An empty list [] removes all routing. Call campaigns only. Answers with the updated campaign.

The body is a list. Each entry:

Field Default Meaning
target_id required The target's id. An id that is not in your account gives 422.
priority_tier 1 Lower tiers are tried first.
weight 100 Share among targets in the same tier.
enabled true Set false to keep the entry but skip it.
price_cents target's own A price for this campaign only.
billable_threshold_seconds target's own Seconds a call must last to count, for this campaign only.
billing_trigger target's own duration, answered or confirmed.
curl -X PUT https://app.callsflowplus.com/api/v1/campaigns/CAMPAIGN_ID/targets \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '[{"target_id": "TARGET_ID", "priority_tier": 1, "weight": 100}]'

Set a source's terms on a campaign

PUT /campaigns/{campaign_id}/sources/{source_id}/terms (read & write key)

Attaches a source to a campaign, or updates its terms if it is already attached. This is how you set what a publisher is paid. On an existing attachment, a field you leave out keeps its stored value. Answers with the updated campaign.

Field Default Meaning
payout_model required fixed, revshare or margin.
fixed_cents none Required for fixed.
revshare_pct none Required for revshare. More than 0 and less than 100.
margin_cents none Required for margin: the publisher is paid the buyer's bid minus this, never below zero. 1 to 1000000.
max_payout_cents none Optional, revshare and margin only: the most the publisher is paid per call. 1 to 1000000. Leave it out to keep the stored cap (no cap on a new attachment), send null to remove it.
billable_threshold_seconds 0 Seconds a call must be connected before the publisher is paid.
payout_trigger duration duration (pay after the threshold) or sale (pay when the buyer confirms a sale).
threshold_mode fixed fixed, buyer or buyer_plus.
threshold_adjust_seconds 0 Extra seconds added under buyer_plus.
active true Set false to switch this source off on this campaign.

On a lead campaign, leave the call-only fields (billable_threshold_seconds, threshold_mode, threshold_adjust_seconds, payout_trigger) at their defaults, and do not use margin or max_payout_cents, or you get 422.

curl -X PUT https://app.callsflowplus.com/api/v1/campaigns/CAMPAIGN_ID/sources/SOURCE_ID/terms \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"payout_model": "fixed", "fixed_cents": 2500, "billable_threshold_seconds": 90}'

Set a source's payout exceptions

PUT /campaigns/{campaign_id}/sources/{source_id}/payout-exceptions (read & write key)

Calls of this source that match an exception pay what the exception says instead of the source's terms. An exception covers one target, one buyer (any of its targets) or every buyer, and may be limited by dates, hours and call data. Exceptions are checked target first, then buyer, then every buyer, each group in the order you send them; the first match wins. The list you send replaces the stored one; {"exceptions": []} removes them all. Sources paid per call on call campaigns only (422 otherwise). Answers with the updated campaign; each entry of its sources carries payout_exceptions in check order, each with scope (target, buyer or line for every buyer) and the fields below.

Field Meaning
kind set (default): pays what the fields below say. adjust: changes what the call pays (see below).
target_id or buyer_id At most one per exception. Neither: every buyer.
payout_model fixed (default) or revshare. Optional when revshare_pct is given.
payout_cents fixed only, required: 0 to 1000000.
revshare_pct revshare only, required: 0.01 to 100 (two decimals at most) of the winning bid.
billable_threshold_seconds set only, required: 0 to 86400.
adjust_cents adjust only: -1000000 to 1000000, not 0. Added to the payout.
adjust_pct adjust only: -100 to 100, not 0, two decimals at most, of the payout. Not with adjust_cents.
adjust_seconds adjust only: -86400 to 86400, not 0. Added to the billable seconds.
label Optional name, up to 60 characters.
starts_on, ends_on Optional days (YYYY-MM-DD, Eastern time, both included). ends_on not before starts_on. Only starts_on: a scheduled change from that day.
schedule Optional hours, the same shape as a target's ({"tz": "America/New_York", "hours": {"mon": [["18:00", "24:00"]]}}); tz may be "caller".
filters Optional call data, the same shape as a target's routing_filters, on state, zip, area_code, caller or tag:<name> only; at most 10 groups and 50 rules.

At most 50 exceptions per source. The same exception twice is refused, and so is one that can never apply because an earlier exception for the same target, buyer or every buyer has no conditions. An adjust exception needs at least one of adjust_cents, adjust_pct or adjust_seconds and takes no payout_model, payout_cents, revshare_pct or billable_threshold_seconds. Every matching adjust exception applies, after the payout is chosen and in check order: the result never goes below 0 or above the bid, and the source's maximum payout still applies.

curl -X PUT https://app.callsflowplus.com/api/v1/campaigns/CAMPAIGN_ID/sources/SOURCE_ID/payout-exceptions \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"exceptions": [
        {"buyer_id": "BUYER_ID", "payout_cents": 2500, "billable_threshold_seconds": 180, "label": "Nights",
         "schedule": {"tz": "America/New_York", "hours": {"mon": [["18:00", "24:00"]], "tue": [["18:00", "24:00"]]}}},
        {"buyer_id": "BUYER_ID", "payout_cents": 1700, "billable_threshold_seconds": 180},
        {"revshare_pct": 60, "billable_threshold_seconds": 120, "starts_on": "2026-12-01",
         "filters": {"groups": [{"rules": [{"field": "tag:SubId", "op": "eq", "values": ["123"]}]}]}}]}'

Publishers

List publishers

GET /publishers

Fields: id, name, company, contact_email, contact_phone, status (pending, active or paused), notes, billing_cycle (weekly, semimonthly or monthly), recordings_visible, history_visible, not_placed_visible, created_at.

curl https://app.callsflowplus.com/api/v1/publishers \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Create a publisher

POST /publishers (read & write key). Answers 201 with the new publisher and one extra field, token: the publisher's own token, for sending traffic to you. It is shown once, exactly as in the app. Store it now; the API cannot show it again.

Field Default Meaning
company required The publisher's company name.
name the company A contact or display name.
contact_email, contact_phone empty Contact details.
notes empty Your own notes.
billing_cycle weekly weekly, semimonthly or monthly.
postback_url none A URL we notify when a call is paid. Must start with http:// or https://.
rate_cap_per_min 60 The most requests a minute we accept from this publisher (Rate cap (calls/min) in the app).
recordings_visible false The publisher can listen to its own call recordings in its portal (Can listen to call recordings in the app). Recordings include the buyer's side of the call.
history_visible false The publisher sees its own imported call history in its portal. Imported calls are hidden from it otherwise, and always hidden from buyers.
not_placed_visible false The publisher sees its Calls not placed page in its portal (its own pings by campaign and day, with plain reasons).
sub_id none The publisher's Sub ID, sent to buyers as {sub_id} in ping URLs and bodies. 1 to 64 letters, digits, _, . or -.
curl -X POST https://app.callsflowplus.com/api/v1/publishers \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company": "Bright Leads LLC", "contact_email": "ops@brightleads.example"}'

Change a publisher

PATCH /publishers/{publisher_id} (read & write key). Send only what changes. The fields above, plus status (active or paused). Sending null clears optional fields such as postback_url; company, name, status, billing_cycle, recordings_visible, history_visible and not_placed_visible cannot be cleared. Answers with the updated publisher.

curl -X PATCH https://app.callsflowplus.com/api/v1/publishers/PUBLISHER_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "paused"}'

Sources

A source is one stream of traffic from a publisher.

List sources

GET /sources

Fields: id, publisher_id, name, status (active or paused), created_at.

curl https://app.callsflowplus.com/api/v1/sources \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Create a source

POST /sources (read & write key). Answers 201 with the new source.

Field Meaning
publisher_id Required. The publisher it belongs to.
name Required. The source's name.

Other fields are refused.

curl -X POST https://app.callsflowplus.com/api/v1/sources \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"publisher_id": "PUBLISHER_ID", "name": "Facebook - Medicare"}'

Change a source

PATCH /sources/{source_id} (read & write key). Send name, status (active or paused), or both. Answers with the updated source.

curl -X PATCH https://app.callsflowplus.com/api/v1/sources/SOURCE_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "paused"}'

To attach a source to a campaign and set what it is paid, see "Set a source's terms on a campaign" under Campaigns above.

Buyers

List buyers

GET /buyers

Fields: id, name, company, contact_email, status (active or paused), notes, net_terms_days, dupe_window_days, dispute_window_days, billing_cycle, max_pings_per_minute, created_at.

curl https://app.callsflowplus.com/api/v1/buyers \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Create a buyer

POST /buyers (read & write key). Answers 201 with the new buyer. Unknown fields are refused.

Field Default Meaning
company required The buyer's company name.
name the company The contact person's name.
contact_email empty Contact email.
status active active or paused.
notes empty Your own notes.
net_terms_days 7 Days the buyer has to pay an invoice.
billing_cycle weekly weekly, semimonthly or monthly.
dispute_window_days 30 How long the buyer can dispute a call (0 to 365).
dupe_window_days none Never send this buyer a caller it already took in this many days (1 to 365).
dupe_basis connected What the duplicate window counts: connected (an earlier call that connected or was billed) or converted (an earlier call the buyer paid for or reported as a sale).
max_pings_per_minute none Most pings per minute across all of this buyer's targets (1 to 100000).
curl -X POST https://app.callsflowplus.com/api/v1/buyers \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company": "Harbor Health", "contact_email": "calls@harborhealth.example"}'

Change a buyer

PATCH /buyers/{buyer_id} (read & write key). Send only what changes. The same fields as above. Answers with the updated buyer.

curl -X PATCH https://app.callsflowplus.com/api/v1/buyers/BUYER_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "paused"}'

Targets

A target is where a buyer's calls go: a phone number, or a real-time (RTB) ping address.

List targets

GET /targets

Fields: id, buyer_id, name, kind (static or rtb), status (active, paused or auto_paused), phone, price_cents, billable_threshold_seconds, billing_trigger, static_price, ping_method, timeout_ms, concurrency_cap, max_pings_per_minute, cap_hourly_calls, cap_daily_calls, cap_monthly_calls, cap_daily_cents, cap_monthly_cents, cap_on, cap_timezone, schedule, ring_timeout_seconds, failover_eligible, auto_pause, routing_filters, created_at.

ping_url, confirm_url and auth_headers are write-only: you can send them when you create or change a target, but the API never returns them, because these URLs often carry the buyer's own credentials. To check one, open the target in the app.

curl https://app.callsflowplus.com/api/v1/targets \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Create a target

POST /targets (read & write key). Answers 201 with the new target.

Always required: buyer_id, name and kind (static or rtb).

  • A static target also needs phone and price_cents.
  • An rtb target also needs ping_url, a source for the bid (parse_bid or price_cents) and a source for the number to dial (parse_phone or phone).

Common optional fields:

Field Default Meaning
phone none The number to dial.
price_cents none What the buyer pays.
billable_threshold_seconds none Seconds a call must last to count.
billing_trigger duration duration, answered or confirmed.
status active active or paused.
ping_url none RTB only. Where we send the buyer's ping. Write-only: never returned by the API.
confirm_url none RTB only. An optional address we check just before dialing a winning bid. If the buyer refuses or does not answer in time, that bid is skipped. Write-only: never returned by the API.
ping_method GET The method used for the ping.
timeout_ms 4000 How long to wait for the buyer's answer.
ring_timeout_seconds 25 How long to ring before moving on.
concurrency_cap none Most calls at once.
failover_eligible true Whether other targets can take the call if this one fails.
auto_pause false Whether we pause the target on our own after a run of failed dials.
cap_hourly_calls, cap_daily_calls, cap_monthly_calls none Call caps.
cap_daily_cents, cap_monthly_cents none Money caps.
cap_on calls What the caps count.
cap_timezone America/New_York The timezone the caps reset in.
schedule always open Open hours, in the same shape as a campaign's.
max_pings_per_minute none Most pings per minute to this target.

The target's advanced response-reading and accept-rule fields are also accepted, exactly as in the app. See the OpenAPI file.

curl -X POST https://app.callsflowplus.com/api/v1/targets \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"buyer_id": "BUYER_ID", "name": "Blue Oak - transfers", "kind": "static", "phone": "+15555550123", "price_cents": 3000, "billable_threshold_seconds": 90}'

Change a target

PATCH /targets/{target_id} (read & write key). Send only what changes. Any of the fields above except buyer_id and kind. Sending null clears an optional field, such as a cap; fields that must always have a value cannot be set to null. Answers with the updated target.

To pause a target:

curl -X PATCH https://app.callsflowplus.com/api/v1/targets/TARGET_ID \
  -H "Authorization: Bearer cfp_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "paused"}'

Numbers

List numbers

GET /numbers

Read only. Your tracking numbers. The API cannot buy, release or edit numbers; do that in the app.

Fields: id, e164 (the number, like +15555550123), provider, status (active or released), label, campaign_id, publisher_id, source_id, created_at.

curl https://app.callsflowplus.com/api/v1/numbers \
  -H "Authorization: Bearer cfp_YOUR_KEY"

Not in the API

The API never deletes, never buys or releases numbers, and never touches billing, credits, users, invites or API keys. To take something out of use, set its status to paused.

Related

Still stuck?

Ask the support chat inside your account, or send us a request.

Submit a request

Track every call. Route it your way.

Create your account in a few minutes, or talk to us for a walkthrough. Every buyer and publisher gets their own portal.