Docs
Endpoints · Signed links

GET/v1/media

A picture or font a Design's pages are drawn with (signed, public).

What it does

The library picture (a light copy) or font that an SVG page from GET /v1/designs names, to whoever holds the signed address; the addresses come only from GET /v1/designs. Library pictures and the organisation's fonts only, never a shopper's photo. One plain-text 404 for every refusal.

No key: it is public.

curl "https://printwisp.com/v1/media?t=ten_7c0a1b2e9d4f&f=ast_c41c3bf6c1bfd5d5&size=screen&sig=0f1e2d3c4b5a69788796a5b4c3d2e1f0" \
  -o picture.webp
<?php
file_put_contents('picture.webp', file_get_contents('https://printwisp.com/v1/media?t=ten_7c0a1b2e9d4f&f=ast_c41c3bf6c1bfd5d5&size=screen&sig=0f1e2d3c4b5a69788796a5b4c3d2e1f0'));
// Node
const r = await fetch('https://printwisp.com/v1/media?t=ten_7c0a1b2e9d4f&f=ast_c41c3bf6c1bfd5d5&size=screen&sig=0f1e2d3c4b5a69788796a5b4c3d2e1f0');
require('fs').writeFileSync('picture.webp', Buffer.from(await r.arrayBuffer()));
import requests

r = requests.get(
    "https://printwisp.com/v1/media?t=ten_7c0a1b2e9d4f&f=ast_c41c3bf6c1bfd5d5&size=screen&sig=0f1e2d3c4b5a69788796a5b4c3d2e1f0",
)
open("picture.webp", "wb").write(r.content)

Parameters

ParameterTypeDescription
t requiredstringThe organisation's id.
f requiredstringThe picture (ast_) or font face (fnt_).
sizestringscreen (1600 px, the default) or tile.
sig requiredstringThe signature GET /v1/designs put in the address.

Response

200 image/webp. The file.

HTTP/1.1 200
Content-Type: image/webp

Errors

HTTPerrormessage
404plain textNot found.
Not found.

← Every routeQuickstart →