---
title: "RoomAvatarsByToken (Nextcloud)"
description: "Nextcloud Room Avatars"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/nextcloud/Spreed.Spreed.RoomAvatarsByToken
original: https://documentation.invantive.eu/en/datamodels/nextcloud/Spreed.Spreed.RoomAvatarsByToken
updated: 2026-11-10T15:26:07Z
license: https://documentation.invantive.eu/en/
---

# RoomAvatarsByToken: Nextcloud Nextcloud Room Avatars

`read only` `REST`

- Catalog: `Spreed`
- Schema: `Spreed`
- Label: Nextcloud Room Avatars

Can only retrieve data.

## Summary

Avatar of one room. Read-only.

## API Source

- Endpoint: `/ocs/v2.php/apps/spreed/api/v1/room/{token}/avatar`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 361 |
| Full scan rows per minute | 18,900 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `dark` | `boolean` | [ ] | False | Whether to read the dark-theme variant of the avatar. |
| `token` | `varchar2` | [x] |  | Token of the room to read the avatar of. |

## Table Columns

The columns of the table `RoomAvatarsByToken` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `avatar` | `blob` | itgen_ncl_avatar | [ ] | filters on the platform, writable | Raw image bytes of the avatar, PNG or SVG depending on content_type. |
| `content_type` | `varchar2` | itgen_ncl_content_type | [ ] | filters on the platform, writable | MIME type of the avatar image, e.g. image/png or image/svg+xml. |

