Marketplace API
API access for marketplace publishers and call buyers. Pull your calls, earnings, payouts, transactions, and balance, and let buyer keys manage campaigns.
Who This Is For
Marketplace publisher and call buyer accounts get their own API keys. They work exactly like regular CallScaler API keys, with the same Authorization: Bearer cs_key_... header, base URL, and response envelope, but they are read-only: only the GET endpoints on this page are available. Everything else, including anything that changes settings or moves money, returns 403.
The one exception is campaign changes on buyer keys. Turn on Allow campaign changes when you create a buyer key and it can also create, edit, pause, and archive your campaigns and set their prices and ZIP lists. It is off by default, and no key can add funds or change billing.
Use a marketplace key to sync your call log into your own reporting, reconcile earnings or spend against your records, and monitor balances programmatically.
Creating a Key
Publishers: open Settings → API & MCP.
Buyers: open Settings → API & MCP in your buyer dashboard.
Click Create API Key, name it, and copy the key immediately. The full secret is shown only once. Up to 10 active keys per account; revoking a key disables it immediately.
curl -H "Authorization: Bearer cs_key_your_key_here" \
https://callscaler.com/api/v1/publisher/earningsConventions
Marketplace keys follow the same conventions as the rest of the API:
- •Rate limit: 60 requests per minute, with
X-RateLimit-*headers and429+Retry-Afterwhen exceeded - •Successful responses are wrapped in a
dataenvelope; errors return{"error": {"code", "message"}} - •Money values are in cents, timestamps are ISO 8601 UTC, IDs are UUIDs, phone numbers are E.164
Publisher Endpoints
All endpoints are GET and scoped to your own publisher account:
- •
/api/v1/publisher/call-log— full call log for your assigned numbers. Supports the same filters and pagination as the app's call log (limit,offset,status,start_date/end_date,min_payout_cents, …) - •
/api/v1/publisher/call-log/export— the same log as CSV - •
/api/v1/publisher/calls— simplified per-campaign call list - •
/api/v1/publisher/earnings— lifetime / monthly / pending / paid-out totals, per-offer breakdown, and payout-eligibility state per network relationship - •
/api/v1/publisher/payouts— payout history (amount, method, status, dates) - •
/api/v1/publisher/campaignsand/campaigns/{id}— your campaigns, assigned numbers, and payout terms - •
/api/v1/publisher/numbers— the tracking numbers assigned to you - •
/api/v1/publisher/calls/{id}/recording— stream the recording (MP3) for a call on your assigned numbers; supportsRangerequests, returns404if the call wasn't recorded
Buyer Endpoints
All endpoints are GET and scoped to your buyer account:
- •
/api/v1/buyer/me— account summary includingbalance_cents, status, campaign counts, and destination settings - •
/api/v1/buyer/calls— calls billed to you: caller, duration,qualified,charge_cents, AI score - •
/api/v1/buyer/transactions— wallet ledger: deposits, call charges, refunds, withamount_centsandbalance_after_cents - •
/api/v1/buyer/campaigns— your buying campaigns and their targeting - •
/api/v1/buyer/disputes— your filed disputes and their resolution status - •
/api/v1/buyer/calls/{id}/recording— stream the recording (MP3) for a call billed to you; supportsRangerequests, returns404if the call wasn't recorded
Buyer Campaign Changes
Buyer keys created with Allow campaign changes can also call the endpoints below. They follow the same rules as your buyer dashboard: if your network turned off campaign management for your account, only pausing and resuming work; prices under the vertical minimum are refused with min_bid_cents in the error; view-only logins can't make changes. A key without campaign changes gets 403 on these.
Writes count toward the same 60 requests per minute as reads.
- •
GET /api/v1/buyer/verticals: verticals you can buy in, withmin_bids(cents per vertical) and yourmin_bid_override - •
POST /api/v1/buyer/campaigns: create a campaign. Body{"name", "category_slug"}, wherecategory_slugis a vertical from the list above. A new campaign has no price until you set its bid sheet - •
PUT /api/v1/buyer/campaigns/{id}: change settings; only the fields you send change. Fields:name,category_slug,forward_phone_number(E.164),timezone,hours_config,daily_call_cap,daily_total_call_cap,daily_ping_cap,hourly_ping_cap,minute_ping_cap,notify_emails,notify_mode(allorqualified),self_paused - •
PUT /api/v1/buyer/campaigns/{id}/bid-sheet: set the price per call and where the campaign bids. Body{"price_cents", "nationwide", "zips"}, or send"states": ["TX", "OK"]instead ofzipsto bid on whole states. This replaces the whole list, so readGET /campaigns/{id}/bid-sheetfirst and resend every ZIP you want to keep - •
DELETE /api/v1/buyer/campaigns/{id}: archive a campaign. It stops bidding and leaves your list. To stop calls for a while, send{"self_paused": true}to the update endpoint instead - •
POST /api/v1/buyer/pause: pause ({"paused": true}) or resume (false) every campaign at once
# Set a $45 price on three ZIPs
curl -X PUT -H "Authorization: Bearer cs_key_your_key_here" \
-H "Content-Type: application/json" \
-d '{"price_cents": 4500, "nationwide": false, "zips": ["78701", "78702", "78703"]}' \
https://callscaler.com/api/v1/buyer/campaigns/CAMPAIGN_ID/bid-sheet
# Hours of operation (mon to sun): a day you leave out is closed
curl -X PUT -H "Authorization: Bearer cs_key_your_key_here" \
-H "Content-Type: application/json" \
-d '{"daily_call_cap": 20, "hours_config": {"timezone": "America/Chicago", "mon": {"open": "08:00", "close": "18:00", "enabled": true}}}' \
https://callscaler.com/api/v1/buyer/campaigns/CAMPAIGN_IDMarketplace Fields on Call Rows
The publisher call log (/publisher/call-log) reuses the standard Calls API row shape, plus marketplace-specific fields:
- •
payout_cents— your publisher payout for the call (0 until the call qualifies for a payout) - •
qualified/unqualified— whether the call currently counts as qualified;ppc_unqualified_atis set when a call was later disqualified - •
caller_zip,caller_zip_city,caller_zip_state— caller-entered ZIP where gathered - •Buyer-side rows use
charge_cents(what you paid). Charges only become final when the call qualifies — a disqualified call shows a charge of 0 or a matching refund transaction
Read-Only Errors
Calling anything outside the lists above with a marketplace key returns:
Regular subscriber API keys are unaffected — this page only applies to keys created by publisher or buyer accounts.
// HTTP 403 Forbidden
{
"error": {
"code": "403",
"message": "marketplace API keys are read-only. Only the documented GET endpoints are allowed"
}
}Related
On this page