Get account overview
Rolls up spend and results across the Koast launches on the ad account for datePreset (default today). Campaigns not launched through Koast are not counted, and at most 10 launches are sampled. Values are live reads from the ad platform.
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.
accountId*stringThe ad account id, as the ad platform writes it (act_… on Meta).
datePreset?stringReporting date preset. If omitted, defaults to today. Use last_7d / last_28d / last_30d / last_90d / this_month / last_month as needed. Every last_Nd preset ENDS YESTERDAY and does not include today, so a campaign that only started yesterday reads as zero under last_7d, use today or yesterday to see it, and say which window a number came from. For "lifetime" / "all time" / "since launch", use maximum, NOT "lifetime" (it is not an accepted value). Arbitrary start/end date ranges are not supported by the backend.
"today""yesterday""this_week_sun_today""last_7d""last_14d""last_28d""last_30d""last_90d""this_month""last_month""maximum"Get account overview
application/json- response
asOf?stringISO time of the live provider read behind this response. Set on MCP and API responses, which may be served from the short metrics cache.
[key: string]?unknowncurl -X GET "https://example.com/v1/brands/0/ad-accounts/string/overview" \ -H "Authorization: Bearer koast_sk_..."{ "asOf": "string", "property1": null, "property2": null}Required scope: read. CLI: koast get-account-overview, see Ad Accounts commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Get asset and targeting options
Lists the selectable assets and targeting values on the ad account for optionType (pixels, facebookPages, instagramAccounts, audiences, interests, locations or conversionEvents), optionally filtered by query.
Search the Ad Library
Searches the Meta Ad Library by query and/or one pageId, in country (default US), and returns each ad with an image: page, copy, call to action, start date and image urls (signed, expiring within days). Ads without an image are counted in withoutImages. Page with cursor.