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() and authenticate with either a server API key (setKey()) or a signed-in user (setSession() or setJWT()). For direct REST calls, send X-Appwrite-Project with either X-Appwrite-Key or session/JWT headers.

Supports optional impersonation. Learn more

Path

enum
Required

Query parameters

integer
integer
integer
Status
Content type
200
image/png
JavaScript
const sdk = require('node-appwrite');
const client = new sdk.Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>') // Your project ID
.setSession(''); // The user session to authenticate with
const avatars = new sdk.Avatars(client);
const result = await avatars.getBrowser({
code: sdk.Browser.AvantBrowser,
width: 0, // optional
height: 0, // optional
quality: -1, // optional
});