Content
Add image
Adds an image to the brand image library from a public URL: fetches it, optimizes it (resize ≤1200px, palette PNG via Sharp), stores it, and vector-indexes it so the email agent can find it. Returns the durable cdn.brew.new URL plus dimensions. Credit-metered (fixed cost).
post/v1/content/add-image
Request
- Base URLhttps://brew.new/api
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
Request body
Response
The image was optimized, saved to the brand library, and rehosted; url is a durable cdn.brew.new URL.
Changes
No recorded changes to this operation across all 1 revision of this API.