Skip to content
OAOpenAppPhysical Security as a Service
Login

Me (current user)

Endpoints under the Me tag apply to the caller’s identity derived from the API key or session — there is no X-Org selector on these routes. Response shapes follow MeApartmentsResponse, MeInvitationsResponse, MePushSubscriptionStatusResponse, MePushVapidPublicKeyResponse, and PostMePushSubscriptionPayload in the API reference.

For installation and credentials, see Authentication. For organization-scoped lists (devices, entities, …), see Organization context & pagination.

ConcernHTTPoperationIdNotes
Resident apartmentsGET /me/apartmentsget_me_apartmentsApartments the user is a resident of.
Claimed invitationsGET /me/invitationsget_me_invitationsInvitations the user has claimed.
Push subscription flagGET /me/push-subscription-statusget_me_push_subscription_statusWhether any Web Push subscription exists.
Store push subscriptionPOST /me/push-subscriptionspost_me_push_subscriptionBody PostMePushSubscriptionPayload (endpoint, p256dh, auth).
VAPID public keyGET /me/push-vapid-public-keyget_me_push_vapid_public_key404 when push is not configured server-side.
CapabilityPythonRust (openapp_sdk)GoTypeScript (AsyncClient)
Apartmentsclient.me.apartments()client.me().apartments()MeAPI.GetMeApartmentsNot on façade yet
Invitationsclient.me.invitations()client.me().invitations()MeAPI.GetMeInvitationslistInvitations (GET /me/invitations)
Push subscription statusclient.me.push_subscription_status()client.me().push_subscription_status()MeAPI.GetMePushSubscriptionStatusNot on façade yet
Push subscribeclient.me.subscribe_push(...)client.me().subscribe_push(...)MeAPI.PostMePushSubscriptionNot on façade yet
VAPID keyclient.me.push_vapid_public_key()client.me().push_vapid_public_key()MeAPI.GetMePushVapidPublicKeyNot on façade yet

401 when the key or session does not authenticate. get_me_push_vapid_public_key returns 404 when the server has no VAPID configuration. post_me_push_subscription may return 400 for invalid payloads. Error bodies follow ApiErrorResponse — see Errors & retries.

rows = await client.me.invitations()
apartments = await client.me.apartments()

Push subscription status (GET /me/push-subscription-status)

Section titled “Push subscription status (GET /me/push-subscription-status)”

Returns MePushSubscriptionStatusResponse — whether the caller already has at least one Web Push subscription stored. Use this before post_me_push_subscription to avoid duplicate work or to branch UI.

status = await client.me.push_subscription_status()

Browser-derived endpoint, p256dh, and auth keys must be passed as in PostMePushSubscriptionPayload.

await client.me.subscribe_push(
endpoint="https://fcm.googleapis.com/...",
p256dh="...",
auth="...",
)
try:
key = await client.me.push_vapid_public_key()
except Exception:
# 404 when not configured — handle per deployment
raise