{"openapi":"3.1.0","info":{"title":"CallsFlow Plus API","version":"1"},"paths":{"/api/v1/campaigns":{"get":{"tags":["v1"],"summary":"List Campaigns","operationId":"list_campaigns_api_v1_campaigns_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1"],"summary":"Create Campaign","operationId":"create_campaign_api_v1_campaigns_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/campaigns/{campaign_id}":{"get":{"tags":["v1"],"summary":"Get Campaign","operationId":"get_campaign_api_v1_campaigns__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["v1"],"summary":"Patch Campaign","operationId":"patch_campaign_api_v1_campaigns__campaign_id__patch","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/publishers":{"get":{"tags":["v1"],"summary":"List Publishers","operationId":"list_publishers_api_v1_publishers_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1"],"summary":"Create Publisher","operationId":"create_publisher_api_v1_publishers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublisherBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sources":{"get":{"tags":["v1"],"summary":"List Sources","operationId":"list_sources_api_v1_sources_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1"],"summary":"Create Source","operationId":"create_source_api_v1_sources_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/buyers":{"get":{"tags":["v1"],"summary":"List Buyers","operationId":"list_buyers_api_v1_buyers_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1"],"summary":"Create Buyer","operationId":"create_buyer_api_v1_buyers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/targets":{"get":{"tags":["v1"],"summary":"List Targets","operationId":"list_targets_api_v1_targets_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["v1"],"summary":"Create Target","operationId":"create_target_api_v1_targets_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/numbers":{"get":{"tags":["v1"],"summary":"List Numbers","operationId":"list_numbers_api_v1_numbers_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls":{"get":{"tags":["v1"],"summary":"List Calls","operationId":"list_calls_api_v1_calls_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"publisher_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher Id"}},{"name":"source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"}},{"name":"buyer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"imported","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imported"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/calls/{call_id}":{"get":{"tags":["v1"],"summary":"Get Call","operationId":"get_call_api_v1_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/summary":{"get":{"tags":["v1"],"summary":"Report Summary","operationId":"report_summary_api_v1_reports_summary_get","parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","default":"day","title":"Group By"}},{"name":"imported","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Imported"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/campaigns/{campaign_id}/targets":{"put":{"tags":["v1"],"summary":"Put Campaign Targets","operationId":"put_campaign_targets_api_v1_campaigns__campaign_id__targets_put","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TreeEntry"},"title":"Entries"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/campaigns/{campaign_id}/sources/{source_id}/terms":{"put":{"tags":["v1"],"summary":"Put Source Terms","operationId":"put_source_terms_api_v1_campaigns__campaign_id__sources__source_id__terms_put","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/campaigns/{campaign_id}/sources/{source_id}/payout-exceptions":{"put":{"tags":["v1"],"summary":"Put Payout Exceptions","operationId":"put_payout_exceptions_api_v1_campaigns__campaign_id__sources__source_id__payout_exceptions_put","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/publishers/{publisher_id}":{"patch":{"tags":["v1"],"summary":"Patch Publisher","operationId":"patch_publisher_api_v1_publishers__publisher_id__patch","parameters":[{"name":"publisher_id","in":"path","required":true,"schema":{"type":"string","title":"Publisher Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublisherPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sources/{source_id}":{"patch":{"tags":["v1"],"summary":"Patch Source","operationId":"patch_source_api_v1_sources__source_id__patch","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/buyers/{buyer_id}":{"patch":{"tags":["v1"],"summary":"Patch Buyer","operationId":"patch_buyer_api_v1_buyers__buyer_id__patch","parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/targets/{target_id}":{"patch":{"tags":["v1"],"summary":"Patch Target","operationId":"patch_target_api_v1_targets__target_id__patch","parameters":[{"name":"target_id","in":"path","required":true,"schema":{"type":"string","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BuyerBody":{"properties":{"concurrency_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Concurrency Cap"},"cap_hourly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Calls"},"cap_daily_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Calls"},"cap_monthly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Calls"},"cap_total_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Calls"},"cap_hourly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Cents"},"cap_daily_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Cents"},"cap_monthly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Cents"},"cap_total_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Cents"},"company":{"type":"string","title":"Company"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"net_terms_days":{"type":"integer","title":"Net Terms Days","default":7},"status":{"type":"string","title":"Status","default":"active"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"dupe_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dupe Window Days"},"dupe_basis":{"type":"string","title":"Dupe Basis","default":"connected"},"dispute_window_days":{"type":"integer","title":"Dispute Window Days","default":30},"billing_cycle":{"type":"string","title":"Billing Cycle","default":"weekly"},"max_pings_per_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Minute"},"pause_on_429":{"type":"boolean","title":"Pause On 429","default":false},"cap_on":{"type":"string","title":"Cap On","default":"calls"},"cap_timezone":{"type":"string","title":"Cap Timezone","default":"America/New_York"},"confirm_call_id_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Call Id Param"},"confirm_amount_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Amount Param"},"confirm_success_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Success Param"},"confirm_success_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Success Value"},"confirm_caller_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Caller Param"}},"additionalProperties":false,"type":"object","required":["company"],"title":"BuyerBody"},"BuyerPatch":{"properties":{"concurrency_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Concurrency Cap"},"cap_hourly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Calls"},"cap_daily_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Calls"},"cap_monthly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Calls"},"cap_total_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Calls"},"cap_hourly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Cents"},"cap_daily_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Cents"},"cap_monthly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Cents"},"cap_total_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Cents"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"net_terms_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Terms Days"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"dupe_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dupe Window Days"},"dupe_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dupe Basis"},"dispute_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dispute Window Days"},"billing_cycle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Cycle"},"max_pings_per_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Minute"},"pause_on_429":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pause On 429"},"cap_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap On"},"cap_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap Timezone"},"confirm_call_id_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Call Id Param"},"confirm_amount_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Amount Param"},"confirm_success_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Success Param"},"confirm_success_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Success Value"},"confirm_caller_param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Caller Param"}},"type":"object","title":"BuyerPatch"},"CampaignBody":{"properties":{"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"vertical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vertical"},"dupe_window_hours":{"type":"integer","title":"Dupe Window Hours","default":24},"dupe_action":{"type":"string","title":"Dupe Action","default":"block"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule","description":"Open hours; null = always open. Exactly {\"tz\": \"America/New_York\", \"hours\": {\"mon\": [[\"09:00\", \"17:00\"]], ...}} with days mon..sun, 24-hour HH:MM; a day left out is closed."},"daily_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Cap"},"auction_deadline_ms":{"type":"integer","title":"Auction Deadline Ms","default":4000},"failover_budget_seconds":{"type":"integer","title":"Failover Budget Seconds","default":60},"bid_ttl_seconds":{"type":"integer","title":"Bid Ttl Seconds","default":60},"accept_zero_bids":{"type":"boolean","title":"Accept Zero Bids","default":false},"require_state":{"type":"boolean","title":"Require State","default":false},"call_mode":{"type":"string","title":"Call Mode","default":"rtb"},"require_caller_id":{"type":"boolean","title":"Require Caller Id","default":true},"honor_expired_bid":{"type":"boolean","title":"Honor Expired Bid","default":false},"route_stale_calls":{"type":"boolean","title":"Route Stale Calls","default":false},"screening_provider_ids":{"items":{"type":"string"},"type":"array","title":"Screening Provider Ids","default":[]},"status":{"type":"string","title":"Status","default":"paused"},"kind":{"type":"string","title":"Kind","default":"call"},"routing_mode":{"type":"string","title":"Routing Mode","default":"priority"},"rpc_count_on":{"type":"string","title":"Rpc Count On","default":"dialed"},"rpc_track_by":{"type":"string","title":"Rpc Track By","default":"target"},"rpc_min_calls":{"type":"integer","title":"Rpc Min Calls","default":20},"rpc_desired_calls":{"type":"integer","title":"Rpc Desired Calls","default":200},"rpc_lookback_hours":{"type":"integer","title":"Rpc Lookback Hours","default":168},"rpc_new_target_boost":{"type":"integer","title":"Rpc New Target Boost","default":10},"dupe_count_on":{"type":"string","title":"Dupe Count On","default":"connected"},"dupe_min_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dupe Min Seconds"},"dupe_pay_publisher":{"type":"boolean","title":"Dupe Pay Publisher","default":true},"repeat_ping_seconds":{"type":"integer","title":"Repeat Ping Seconds","default":0},"retry_rounds":{"type":"integer","title":"Retry Rounds","default":0},"reroute_drop_seconds":{"type":"integer","title":"Reroute Drop Seconds","default":0},"bid_floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bid Floor Cents"},"max_bid_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Bid Seconds"},"publisher_floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Publisher Floor Cents"}},"type":"object","required":["name","key"],"title":"CampaignBody"},"CampaignPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"vertical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vertical"},"dupe_window_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dupe Window Hours"},"dupe_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dupe Action"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule","description":"Open hours; null = always open. Exactly {\"tz\": \"America/New_York\", \"hours\": {\"mon\": [[\"09:00\", \"17:00\"]], ...}} with days mon..sun, 24-hour HH:MM; a day left out is closed."},"daily_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Cap"},"auction_deadline_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auction Deadline Ms"},"failover_budget_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Failover Budget Seconds"},"bid_ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bid Ttl Seconds"},"accept_zero_bids":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accept Zero Bids"},"require_state":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require State"},"call_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Mode"},"require_caller_id":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Caller Id"},"honor_expired_bid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Honor Expired Bid"},"route_stale_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Route Stale Calls"},"screening_provider_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Screening Provider Ids"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"routing_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Routing Mode"},"rpc_count_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rpc Count On"},"rpc_track_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rpc Track By"},"rpc_min_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rpc Min Calls"},"rpc_desired_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rpc Desired Calls"},"rpc_lookback_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rpc Lookback Hours"},"rpc_new_target_boost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rpc New Target Boost"},"dupe_count_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dupe Count On"},"dupe_min_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dupe Min Seconds"},"dupe_pay_publisher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dupe Pay Publisher"},"repeat_ping_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Repeat Ping Seconds"},"retry_rounds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Rounds"},"reroute_drop_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reroute Drop Seconds"},"bid_floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bid Floor Cents"},"max_bid_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Bid Seconds"},"publisher_floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Publisher Floor Cents"}},"type":"object","title":"CampaignPatch"},"ExceptionItem":{"properties":{"kind":{"type":"string","enum":["set","adjust"],"title":"Kind","default":"set"},"target_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"},"buyer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer Id"},"payout_model":{"anyOf":[{"type":"string","enum":["fixed","revshare"]},{"type":"null"}],"title":"Payout Model"},"payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payout Cents"},"revshare_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revshare Pct"},"billable_threshold_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billable Threshold Seconds"},"adjust_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adjust Cents"},"adjust_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjust Pct"},"adjust_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adjust Seconds"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule"},"filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filters"},"starts_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Starts On"},"ends_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ends On"}},"additionalProperties":false,"type":"object","title":"ExceptionItem","description":"One rule. target_id or buyer_id (at most one; neither = every buyer),\nwhat it pays (fixed payout_cents, or revshare_pct of the winning bid) after\nbillable_threshold_seconds, and optional conditions that must all hold.\nkind \"adjust\" pays nothing of its own: adjust_cents or adjust_pct (of the\npayout) and/or adjust_seconds change whatever the call pays."},"ExceptionsBody":{"properties":{"exceptions":{"items":{"$ref":"#/components/schemas/ExceptionItem"},"type":"array","title":"Exceptions"}},"additionalProperties":false,"type":"object","required":["exceptions"],"title":"ExceptionsBody","description":"The whole list: it replaces what is stored ([] clears). Its order is\nthe check order within a level (target, then buyer, then every buyer)."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PublisherBody":{"properties":{"company":{"type":"string","title":"Company"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"rate_cap_per_min":{"type":"integer","title":"Rate Cap Per Min","default":60},"postback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postback Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"billing_cycle":{"type":"string","title":"Billing Cycle","default":"weekly"},"recordings_visible":{"type":"boolean","title":"Recordings Visible","default":false},"history_visible":{"type":"boolean","title":"History Visible","default":false},"not_placed_visible":{"type":"boolean","title":"Not Placed Visible","default":false},"sub_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Id"}},"type":"object","required":["company"],"title":"PublisherBody"},"PublisherPatch":{"properties":{"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"rate_cap_per_min":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Cap Per Min"},"postback_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postback Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"billing_cycle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Cycle"},"recordings_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recordings Visible"},"history_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"History Visible"},"not_placed_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Not Placed Visible"},"sub_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sub Id"}},"type":"object","title":"PublisherPatch"},"SourceCreate":{"properties":{"publisher_id":{"type":"string","title":"Publisher Id"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["publisher_id","name"],"title":"SourceCreate"},"SourcePatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"SourcePatch"},"TargetBody":{"properties":{"mapping":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Mapping"},"accept_conditions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Accept Conditions"},"routing_filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Routing Filters"},"preset_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset Key"},"buyer_id":{"type":"string","title":"Buyer Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"billable_threshold_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billable Threshold Seconds"},"ping_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Url"},"ping_method":{"type":"string","title":"Ping Method","default":"GET"},"ping_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Body"},"ping_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Content Type"},"auth_headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Auth Headers"},"timeout_ms":{"type":"integer","title":"Timeout Ms","default":4000},"parse_bid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Bid"},"parse_accept":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Accept"},"parse_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Phone"},"parse_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Threshold"},"parse_ping_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Ping Id"},"confirm_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Url"},"concurrency_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Concurrency Cap"},"max_pings_per_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Minute"},"cap_hourly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Calls"},"cap_daily_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Calls"},"cap_monthly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Calls"},"cap_daily_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Cents"},"cap_monthly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Cents"},"cap_hourly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Cents"},"cap_total_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Calls"},"cap_total_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Cents"},"max_pings_per_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Hour"},"max_pings_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Day"},"cap_hourly_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Attempts"},"cap_daily_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Attempts"},"cap_monthly_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Attempts"},"cap_total_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Attempts"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule","description":"Open hours; null = always open. Exactly {\"tz\": \"America/New_York\", \"hours\": {\"mon\": [[\"09:00\", \"17:00\"]], ...}} with days mon..sun, 24-hour HH:MM; a day left out is closed. tz \"caller\" reads the hours in the caller's own local time (from their state)."},"ring_timeout_seconds":{"type":"integer","title":"Ring Timeout Seconds","default":25},"failover_eligible":{"type":"boolean","title":"Failover Eligible","default":true},"auto_pause":{"type":"boolean","title":"Auto Pause","default":false},"status":{"type":"string","title":"Status","default":"active"},"accept_op":{"type":"string","title":"Accept Op","default":"truthy"},"accept_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept Value"},"billing_trigger":{"type":"string","title":"Billing Trigger","default":"duration"},"cap_on":{"type":"string","title":"Cap On","default":"calls"},"cap_timezone":{"type":"string","title":"Cap Timezone","default":"America/New_York"},"static_price":{"type":"boolean","title":"Static Price","default":false},"bid_floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bid Floor Cents"},"max_bid_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Bid Seconds"}},"type":"object","required":["buyer_id","name","kind"],"title":"TargetBody"},"TargetPatch":{"properties":{"mapping":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Mapping"},"accept_conditions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Accept Conditions"},"routing_filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Routing Filters"},"preset_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preset Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"billable_threshold_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billable Threshold Seconds"},"ping_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Url"},"ping_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Method"},"ping_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Body"},"ping_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ping Content Type"},"auth_headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Auth Headers"},"timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Ms"},"parse_bid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Bid"},"parse_accept":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Accept"},"parse_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Phone"},"parse_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Threshold"},"parse_ping_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parse Ping Id"},"confirm_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirm Url"},"concurrency_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Concurrency Cap"},"max_pings_per_minute":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Minute"},"cap_hourly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Calls"},"cap_daily_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Calls"},"cap_monthly_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Calls"},"cap_daily_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Cents"},"cap_monthly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Cents"},"cap_hourly_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Cents"},"cap_total_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Calls"},"cap_total_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Cents"},"max_pings_per_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Hour"},"max_pings_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Pings Per Day"},"cap_hourly_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Hourly Attempts"},"cap_daily_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Daily Attempts"},"cap_monthly_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Monthly Attempts"},"cap_total_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cap Total Attempts"},"schedule":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schedule","description":"Open hours; null = always open. Exactly {\"tz\": \"America/New_York\", \"hours\": {\"mon\": [[\"09:00\", \"17:00\"]], ...}} with days mon..sun, 24-hour HH:MM; a day left out is closed. tz \"caller\" reads the hours in the caller's own local time (from their state)."},"ring_timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ring Timeout Seconds"},"failover_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Failover Eligible"},"auto_pause":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Pause"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"accept_op":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept Op"},"accept_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept Value"},"billing_trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Trigger"},"cap_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap On"},"cap_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cap Timezone"},"static_price":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Static Price"},"bid_floor_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bid Floor Cents"},"max_bid_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Bid Seconds"}},"type":"object","title":"TargetPatch"},"TermsBody":{"properties":{"payout_model":{"type":"string","title":"Payout Model"},"fixed_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fixed Cents"},"revshare_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Revshare Pct"},"margin_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Margin Cents"},"max_payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Payout Cents"},"min_payout_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Payout Cents"},"billable_threshold_seconds":{"type":"integer","title":"Billable Threshold Seconds","default":0},"active":{"type":"boolean","title":"Active","default":true},"route_mode":{"type":"string","title":"Route Mode","default":"overlay"},"threshold_mode":{"type":"string","title":"Threshold Mode","default":"fixed"},"threshold_adjust_seconds":{"type":"integer","title":"Threshold Adjust Seconds","default":0},"payout_trigger":{"type":"string","title":"Payout Trigger","default":"duration"}},"type":"object","required":["payout_model"],"title":"TermsBody"},"TreeEntry":{"properties":{"target_id":{"type":"string","title":"Target Id"},"priority_tier":{"type":"integer","title":"Priority Tier","default":1},"weight":{"type":"integer","title":"Weight","default":100},"enabled":{"type":"boolean","title":"Enabled","default":true},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"billable_threshold_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billable Threshold Seconds"},"billing_trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Trigger"}},"type":"object","required":["target_id"],"title":"TreeEntry"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key, cfp_..."}}},"security":[{"apiKey":[]}]}