Docs
Skip to content
get

Get browser icon

Endpoint

gethttps://<REGION>.cloud.appwrite.io/v1/avatars/browsers/{code}

Description

Required scopes

avatars.read

Authentication

Initialize the Appwrite client with setProject(). No signed-in user or server API key is required.

Supports optional impersonation. Learn more

Path

enum
Required

Query parameters

integer
integer
integer
Status
Content type
200
image/png
JavaScript
import { Client, Avatars, Browser } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setImpersonateUserId(''); // Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
const avatars = new Avatars(client);
const result = avatars.getBrowser({
code: Browser.AvantBrowser,
width: 0, // optional
height: 0, // optional
quality: -1 // optional
});
console.log(result);