Update ClickFlare settings
Changes the ClickFlare workspaces Koast reads and overrides the tracking fields that carry the ad platform campaign, ad set and ad ids. Only the fields sent change. A tracking field set here is marked manual and is never replaced by detection; null clears it. 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
workspaceIds?array<>ClickFlare workspace ids to read. An empty list reads every workspace of the account.
items <= 200trackingFields?Overrides the detected tracking fields. A role set here is marked manual; null clears it.
Update ClickFlare settings
application/json- response
brandId*numberconnected*booleanWhether a ClickFlare API key is connected to the brand.
maskedApiKey*string|nulltimezone*|The ClickFlare account timezone used for reports. Null means UTC is used.
currency*string|nullworkspaceIds*array<string>trackingFields*trackingFieldsSource*How each tracking field was chosen: data (matched Koast ids in ClickFlare traffic), traffic_source (the traffic source template), or manual.
lastPullAt*string|nulllastPullError*string|nulllastPullRows*number|nullcurl -X PATCH "https://example.com/v1/brands/0/integrations/clickflare/settings" \ -H "Authorization: Bearer koast_sk_..." \ -H "Content-Type: application/json" \ -d '{}'{ "brandId": 0, "connected": true, "maskedApiKey": "string", "timezone": "string", "currency": "string", "workspaceIds": [ "string" ], "trackingFields": { "campaign": "string", "adset": "string", "ad": "string" }, "trackingFieldsSource": { "campaign": "data", "adset": "data", "ad": "data" }, "lastPullAt": "string", "lastPullError": "string", "lastPullRows": 0}Required scope: write. CLI: koast update-clickflare-settings, see Integrations commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
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.
List RedTrack campaign mappings
Returns the campaign mappings used by the RedTrack spend push: automatic ones derived from the RedTrack clicks of the last days (sub3, falling back to rt_campaign_id), manual ones, the Koast campaigns with spend that have no mapping (with the reason), and the RedTrack campaigns to pick from. Any member who can access the brand can read it; changes require an organization owner or admin.