Don’t download from the CDN to build your own copy. See fair use.
Download a logo
GET /v2/brands/logo returns the logo as JSON with a temporary download url and an etag. Call it from your server with your secret key, download the file, and store it:
store-logo.ts
upload is your storage client’s write call, such as S3 PutObject. The download URL expires, so store the file, not the URL. See images for the download parameters.
Keep your copies current
Save each logo’setag with your copy. When you look the brand up again, download the file only if the etag changed.
To learn when a logo changes without polling, subscribe to the brand’s brand.updated webhook, and download again when the event lists logo in its changed attributes.