HTTP request
curl https://api.iagenify.com/api/auth/sessions \
-X GET \
-H "Authorization: Bearer $IAGENIFY_TOKEN"JavaScript
const response = await fetch("https://api.iagenify.com/api/auth/sessions", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}` },
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);Python
import os, requests
response = requests.request(
"GET",
"https://api.iagenify.com/api/auth/sessions",
headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]},
timeout=30,
)
response.raise_for_status()
result = response.json()Successful response
{ ok: true, sessions: [{ _id: "…", storageId: "…", lastActiveAt: "…", expiresAt: "…" }] }A session can include device and storage labels when available. Use its identifier with the revoke endpoint; do not expose token-family or device metadata to unrelated users.