View images
Returns viewable copies of library creatives (creativeIds) and web images (urls). Web images are fetched, shrunk to at most 1568 pixels on the long side and stored on Koast storage; private and internal addresses are refused.
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.
creativeIds?array<>Creatives in the brand's library to look at.
items <= 8urls?array<>Image urls to look at, such as imageUrls from search-ad-library or search-inspiration. Each is copied to Koast storage first.
items <= 8View images
application/json- response
images*array<>failures*array<>Images that could not be shown, with why.
modelImages?array<>Images shown to you after this call
items <= 12[key: string]?unknowncurl -X GET "https://example.com/v1/brands/0/image-views" \ -H "Authorization: Bearer koast_sk_..."{ "images": [ { "label": "string", "url": "string", "width": 0, "height": 0, "property1": null, "property2": null } ], "failures": [ { "label": "string", "reason": "string", "property1": null, "property2": null } ], "modelImages": [ { "url": "string", "label": "string", "property1": null, "property2": null } ], "property1": null, "property2": null}Required scope: read. CLI: koast view-images, see Image Views commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Save generated creatives
Saves AI-generated creatives (from generate-creatives) into the brand's creative library, where the creatives list shows them. A generated creative stays out of that list until it is saved or used in an ad. Creatives an agent chat made go into one folder for that chat, named on its first save; others are saved at the top of the library. Returns the ids this call saved, the ids that were already saved, the ids that are not generated creatives of this brand, and the folders it saved into. Idempotent.
Search inspiration
Searches Pinterest or Cosmos by query and returns image urls with their title, author and page link, to use as visual references in generation. Page with cursor.