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.
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.
source*stringpinterest for a wide pool of everyday and product imagery; cosmos for curated, design-led images (editorial, branding, type, art direction).
"pinterest""cosmos"query*stringWhat to look for, in a few words: a style, a subject, a mood or a kind of ad ("minimal skincare flat lay", "bold typographic poster").
1 <= length <= 200limit?integerImages to return, 1-30. Defaults to 12.
1 <= value <= 30cursor?stringnextCursor from the previous page of the same search.
1 <= length <= 500Search inspiration
application/json- response
images*array<>nextCursor*string|null[key: string]?unknowncurl -X GET "https://example.com/v1/brands/0/inspiration?source=pinterest&query=string" \ -H "Authorization: Bearer koast_sk_..."{ "images": [ { "source": "pinterest", "id": "string", "imageUrl": "string", "previewUrl": "string", "title": "string", "pageUrl": "string", "author": "string", "property1": null, "property2": null } ], "nextCursor": "string", "property1": null, "property2": null}Required scope: read. CLI: koast search-inspiration, see Inspiration commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
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.
Connect ClickFlare
Connects ClickFlare to the brand. Koast checks the key against ClickFlare, reads the account timezone and currency, and detects which tracking fields carry the ad platform campaign, ad set and ad ids. Sending a new key to a connected brand replaces the key and keeps the settings. Answers 422 when ClickFlare rejects the key. Requires an organization owner or admin.