Get a gateway's icon image
No authentication.
The icon of one catalog gateway, as image bytes. You normally reach it
through the icon_url that GET /domains/{domain}/gateways/?icons=url
returns (a path on the API origin, with the version already in ?v=)
instead of the inline base64 icon.
Public — no authentication, so an <img> tag can load it: catalog
icons are not secret. The URL is content-addressed: when v names the
current icon the response may be cached for a year (immutable). An
old or missing v still gets the current icon, but on a short
lifetime, so a stale URL never pins a stale picture. ETag is the
version; send it back in If-None-Match for a 304.
The body is PNG, JPEG, GIF, WebP or SVG. SVG is served with a
sandboxing Content-Security-Policy, so it can only be drawn.
Path parameters
- presetIdintegerrequiredpath
Numeric id of the gateway (the
idof a gateway list item).
Query parameters
- vstringquery
The icon version from
icon_url. Optional; see above.
Responses
200The icon.
Content type: image/png
304If-None-Match matches the current version.
404No such gateway, or it has no icon. Empty body.
Example request
curl -X GET "https://api.nsin.ir/gateway-presets/0/icon" \
-H "Authorization: Bearer $NSIN_API_KEY"