List ad account campaigns
Lists every campaign in the ad account on the ad platform, including those not imported into Koast. Filter by statusFilter or by a case-insensitive name substring with nameQuery. 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).
statusFilter?array<string>Filter by status: ACTIVE, PAUSED, ARCHIVED
nameQuery?stringCase-insensitive substring to match campaign names. ALWAYS pass this when the user named a specific campaign (e.g. "meta test campaign"), the account can hold hundreds of campaigns and this returns only the matches with their ids.
1 <= lengthcursor?stringOpaque cursor from the previous page's nextCursor. Omit for the first page.
limit?integerPage size.
1 <= value <= 10050List ad account campaigns
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.
campaigns*array<>totalInAccount*numbermatched*numbernameQuery*string|nullnextCursor*|Pass as cursor to read the next page. Null when there is no next page.
curl -X GET "https://example.com/v1/brands/0/ad-accounts/string/campaigns" \ -H "Authorization: Bearer koast_sk_..."{ "asOf": "string", "campaigns": [ { "id": "string", "name": "string", "status": "string", "effective_status": "string", "objective": "string", "brandId": "string", "budget": { "period": "string", "amountMinorUnits": 0 }, "budgetLevel": "string", "property1": null, "property2": null } ], "totalInAccount": 0, "matched": 0, "nameQuery": "string", "nextCursor": "string"}Required scope: read. CLI: koast list-account-campaigns, see Ad Accounts commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Quote ad account funds
Prices a top-up exactly as POST /v1/ad-account-requests/{requestId}/top-ups would, and creates nothing. The customer chooses the budget that lands on the ad account; Koast's fee (a rate per payment method) and the platform location fee are added on top, and amountCents is what the payment page charges. Refusals are those of the top-up: 400 validation_failed naming the field for a budget under the minimum or over the maximum, a payment method not offered for the account's currency (bank transfer and crypto are USD only; crypto paid on a payment page is at most 10,000.00 USD per payment) or an ad account the request does not hold; 409 conflict before the ad account is shared.
List lead forms
Lists the instant lead forms that exist on the Page pageId, as { id, name }. Values are live reads from the ad platform.