Docs
Skip to content
get

Get presence

Endpoint

gethttps://<REGION>.cloud.appwrite.io/v1/presences/{presenceId}

Description

Required scopes

presences.read

Authentication

Initialize the Appwrite client with setProject() and ensure the user is signed in. The SDK sends the session header automatically after login.

Path

string
Required
Status
Content type
200
application/json

Presence

Name
Type
Description
string
string
string
arrayof string
string
string
string
string
object
JavaScript
import { Client, Presences } from "appwrite";
const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
const presences = new Presences(client);
const result = await presences.get({
presenceId: '<PRESENCE_ID>'
});
console.log(result);