# GET /api/auth/sessions

Canonical URL: https://developers.iagenify.com/api/auth/sessions/
Language: en

`GET https://api.iagenify.com/api/auth/sessions`

List active sessions owned by the authenticated account, most recently active first.

Status: Bearer or API key · JSON · read

## HTTP request {#http}

```bash
curl https://api.iagenify.com/api/auth/sessions \
  -X GET \
  -H "Authorization: Bearer $IAGENIFY_TOKEN"
```

## JavaScript {#javascript}

```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 {#python}

```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 {#response}

```javascript
{ 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.
