Get presence
Endpoint
gethttps://<REGION>.cloud.appwrite.io/v1/presences/{presenceId}
Description
Get a presence log by its unique ID. Entries whose expiresAt is in the past are treated as not found.
Required scopes
Authentication
setProject() and ensure the user is signed in. The SDK sends the session header automatically after login.Path
Presence unique ID.
Presence
Presence ID.
Presence creation date in ISO 8601 format.
Presence update date in ISO 8601 format.
Presence permissions. Learn more about permissions.
User ID.
Presence status.
Presence source.
Presence expiry date in ISO 8601 format.
Presence metadata.
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);Presences
presences
Get presence
Endpoint
gethttps://<REGION>.cloud.appwrite.io/v1/presences/{presenceId}
Description
Get a presence log by its unique ID. Entries whose expiresAt is in the past are treated as not found.
Required scopes
Authentication
setProject() and ensure the user is signed in. The SDK sends the session header automatically after login.Path
Presence unique ID.
Presence
Presence ID.
Presence creation date in ISO 8601 format.
Presence update date in ISO 8601 format.
Presence permissions. Learn more about permissions.
User ID.
Presence status.
Presence source.
Presence expiry date in ISO 8601 format.
Presence metadata.
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);