Read a channel photo

GET https://z.u1v.ru/api/v1/streams/{stream_id}/avatar

Server extension v1, advertised as channel_avatar_api_version: 1 in register. Requires authentication and channel metadata access. Returns the current square PNG. Private cache revalidation is supported.

Usage example

Use your organization URL and API key; replace the example channel ID 10. Check channel_avatar_api_version: 1 in the register response before calling.

curl --fail-with-body -X GET https://z.u1v.ru/api/v1/streams/10/avatar \
    -u EMAIL_ADDRESS:API_KEY --output channel-photo.png

Parameters

stream_id integer required in path

Example: 1

The ID of the channel to access.


version integer optional

Require this avatar revision; stale revisions return 404.


Response

HTTP Result
200 Current photo.
304 ETag matched the current authorized photo.
404 No photo or stale revision.

A successful response contains PNG, not JSON. version requires the exact revision; a stale revision returns 404. Use ETag and If-None-Match to revalidate a private cache.