List ClickFlare campaign mappings
Returns the campaign mappings used by the ClickFlare spend push: automatic ones derived from the ClickFlare traffic of the last days (the campaign tracking field), manual ones, the Koast campaigns with spend that have no mapping (with the reason), and the ClickFlare campaigns to pick from. 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.
List ClickFlare campaign mappings
application/json- response
brandId*numbermappings*array<>unmatched*array<>clickflareCampaigns*array<>curl -X GET "https://example.com/v1/brands/0/integrations/clickflare/mappings" \ -H "Authorization: Bearer koast_sk_..."{ "brandId": 0, "mappings": [ { "providerCampaignId": "string", "koastCampaignName": "string", "provider": "string", "cfCampaignId": "string", "cfCampaignName": "string", "source": "auto", "pushable": true, "skipReason": "clickflare_campaign_missing", "updatedAt": "string", "updatedByUserId": 0 } ], "unmatched": [ { "providerCampaignId": "string", "koastCampaignName": "string", "provider": "string", "reason": "ambiguous", "candidates": [ { "cfCampaignId": "string", "cfCampaignName": "string", "visits": 0 } ] } ], "clickflareCampaigns": [ { "id": "string", "name": "string" } ]}Required scope: read. CLI: koast list-clickflare-campaign-mappings, see Integrations commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Disconnect ClickFlare
Disconnects ClickFlare from the brand: removes the API key, the campaign mappings and the spend push setting. Conversion and revenue data already pulled from ClickFlare is kept. Requires an organization owner or admin.
Update ClickFlare campaign mapping
Sets the ClickFlare campaign that receives the spend of an ad platform campaign. A manual mapping wins over the automatic one. Send cfCampaignId: null to remove the manual mapping. Returns the full mapping list. Requires an organization owner or admin.