API referenceIntegrations

Update RedTrack spend push

Turns the spend push into RedTrack on or off. When on, Koast places each mapped campaign's spend for today into its RedTrack campaign every hour, and yesterday's final spend once after midnight in the ad account timezone. RedTrack must be connected first. Changing the brand's RedTrack key turns the push off. Requires an organization owner or admin.

PUT
/v1/brands/{brandId}/integrations/redtrack/push
bearerAuth
headerAuthorizationBearer <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*integer

The brand the request acts on. Every brand-scoped resource lives under its brand.

application/json
  1. body
enabled*boolean

Turn the hourly spend push into RedTrack on or off for this brand.

Response Body

Update RedTrack spend push

application/json
  1. response
brandId*number
connected*boolean

Whether a RedTrack API key is connected to the brand.

enabled*boolean
disabledReason*|

Why Koast turned the push off itself: unauthorized (RedTrack rejected the key) or refused (the RedTrack plan does not allow cost updates).

lastPushAt*string|null
lastCampaignsPushed*number

Campaigns whose spend for today the last cycle placed in RedTrack.

lastError*string|null
lastErrorAt*string|null
unmatchedCount*number

Koast campaigns with spend and no RedTrack campaign mapped.

schedule*
curl -X PUT "https://example.com/v1/brands/0/integrations/redtrack/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-redtrack-cost-push, see Integrations commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.