Attach lead form
Turns on instant forms for the lead-generation ad set adsetNodeId and sets leadFormId as its form. Draft ad sets only; a live ad set returns 409.
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.
launchId*stringThe campaign launch (batch) id.
adsetNodeId*stringKoast adset node id to attach the lead form to.
1 <= lengthIdempotency-Key?stringRetrying with the same key within 24 hours returns the first response without acting again.
length <= 255application/json- body
leadFormId*stringMeta lead form id from listLeadForms.
1 <= lengthleadFormName?stringOptional human name of the lead form (from listLeadForms).
Attach lead form
application/json- response
[key: string]?unknowncurl -X POST "https://example.com/v1/brands/0/launches/string/ad-sets/string/lead-form" \ -H "Authorization: Bearer koast_sk_..." \ -H "Content-Type: application/json" \ -d '{ "leadFormId": "string" }'{ "property1": null, "property2": null}Required scope: write. CLI: koast attach-lead-form, see Launches commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Swap creatives
Replaces the creatives on the ad set's ads with creativeIds, in order, keeping each ad's copy. Existing ads are edited in place; extra creatives clone an existing ad, and surplus ads are removed from the Koast tree and listed in removedAdIds.
Add ads
Creates 1-100 ads, each under its own adsetNodeId, optionally attaching a creativeId and a copyGenerationId in the same request. Partial success is possible: unknown ad sets are returned in notFound and per-ad errors in failed, while the rest are created.