Update ClickFlare spend push
Turns the spend push into ClickFlare on or off. When on, Koast uploads the spend of every mapped ClickFlare campaign for today every hour, and yesterday's final spend once after midnight in the ad account timezone. Each upload replaces the cost ClickFlare holds for that window. ClickFlare accepts USD only. ClickFlare must be connected and a campaign tracking field set first. Requires an organization owner or admin.
bearerAuthAuthorizationBearer <token>An organization API key (koast_sk_…) with the API surface enabled, or an OAuth access token issued by Koast (koast_at_…) whose audience covers this API. REST access requires an active Agency plan.
brandId*integerThe brand the request acts on. Every brand-scoped resource lives under its brand.
application/json- body
enabled*booleanTurn the hourly spend push into ClickFlare on or off for this brand.
Update ClickFlare spend push
application/json- response
brandId*numberconnected*booleanWhether a ClickFlare API key is connected to the brand.
enabled*booleandisabledReason*|Why Koast turned the push off itself: unauthorized (ClickFlare rejected the key) or refused (ClickFlare refused the cost upload).
lastPushAt*string|nulllastCampaignsPushed*numberClickFlare campaigns whose spend for today the last cycle uploaded.
lastError*string|nulllastErrorAt*string|nullunmatchedCount*numberKoast campaigns with spend and no ClickFlare campaign mapped.
schedule*curl -X PUT "https://example.com/v1/brands/0/integrations/clickflare/push" \ -H "Authorization: Bearer koast_sk_..." \ -H "Content-Type: application/json" \ -d '{ "enabled": true }'{ "brandId": 0, "connected": true, "enabled": true, "disabledReason": "string", "lastPushAt": "string", "lastCampaignsPushed": 0, "lastError": "string", "lastErrorAt": "string", "unmatchedCount": 0, "schedule": { "cron": "string", "finalLocalHour": 0, "requestIntervalSeconds": 0 }}Required scope: write. CLI: koast update-clickflare-cost-push, see Integrations commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Get ClickFlare spend push
Returns the ClickFlare spend push setting of the brand and the outcome of the last push: when it ran, how many ClickFlare campaigns it updated, the last error and how many Koast campaigns with spend have no ClickFlare campaign mapped. Requires an organization owner or admin.
Get ClickFlare settings
Returns the ClickFlare connection of the brand: the masked API key, the ClickFlare account timezone and currency, the workspaces Koast reads, which trackingField1..20 carries the campaign, ad set and ad ids (and how each was chosen), and the outcome of the last report pull. Answers 404 when ClickFlare is not connected. Requires an organization owner or admin.