Skip to content
Last updated

Get the actual icon file with optional quality transformation. Returns the binary image data.

GEThttps://api.aitronos.com/v1/icons/{icon_id}

Path Parameters

icon_id string required

The ID of the icon to retrieve.

Query Parameters

quality string optional ยท Defaults to medium

Image quality/size level. Options:

  • thumbnail - 64x64px
  • small - 128x128px
  • medium - 256x256px (default)
  • large - 512x512px
  • original - Original size

Note: SVG icons always return original regardless of quality parameter.

Returns

Returns binary image data with appropriate Content-Type header (image/svg+xml, image/png, or image/jpeg).

Caching Behavior

Response includes optimized caching headers:

  • System icons (connectors): Cache-Control: public, max-age=86400, immutable (24 hours)
  • Custom icons: Cache-Control: public, max-age=3600, immutable (1 hour)
  • ETag: Unique identifier for cache validation ("{icon_id}-{quality}")
  • Vary: Accept-Encoding for proper compression handling

The immutable directive indicates the resource won't change for the given URL, enabling aggressive browser caching.

cURL - Get medium quality (default)
curl https://api.aitronos.com/v1/icons/icon_abc123 \
  -H "X-API-Key: $FREDDY_API_KEY" \
  -o icon.png