Endpoints · Signed links
GET/v1/brand-favicon
A store's favicon: the browser tab icon of its pages and designer (image/png, public).
What it does
The browser tab icon of a store's pages and designer. t is the organisation's id; s a store's id when that store has its own favicon, else the organisation's favicon is answered; v a version that changes with every upload, so the image is cached for a year (Cache-Control: public, max-age=31536000, immutable). Public on purpose, with Access-Control-Allow-Origin: *.
No key: it is public.
curl "https://printwisp.com/v1/brand-favicon?t=ten_7c0a1b2e9d4f&v=3" \ -o favicon.png
<?php
file_put_contents('favicon.png', file_get_contents('https://printwisp.com/v1/brand-favicon?t=ten_7c0a1b2e9d4f&v=3'));// Node
const r = await fetch('https://printwisp.com/v1/brand-favicon?t=ten_7c0a1b2e9d4f&v=3');
require('fs').writeFileSync('favicon.png', Buffer.from(await r.arrayBuffer()));import requests
r = requests.get(
"https://printwisp.com/v1/brand-favicon?t=ten_7c0a1b2e9d4f&v=3",
)
open("favicon.png", "wb").write(r.content)Parameters
| Parameter | Type | Description |
|---|---|---|
t required | string | The organisation's id. |
s | string | A store's id, for the favicon of a store with its own branding. |
v | string | The favicon's version. |
Response
200 image/png. The favicon.
Errors
| HTTP | error | message |
|---|---|---|
| 404 | plain text | No favicon. |