# List your sessions

`GET /v1/me/sessions`

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser.

## Responses

### 200

Your unexpired sessions, most recently active first.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "Your unexpired sessions, most recently active first.",
  "properties": {
    "data": {
      "items": {
        "additionalProperties": false,
        "description": "A session of the signed-in user. The session token is never returned.",
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "pattern": "^ses_[0-7][0-9a-hjkmnp-tv-z]{25}$",
            "type": "string"
          },
          "ip_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_active_at": {
            "format": "date-time",
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "Approximate location of the session, resolved from its IP address when it was created.",
                "properties": {
                  "city": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "country": {
                    "anyOf": [
                      {
                        "description": "ISO 3166-1 alpha-2 country code.",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "region": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "country",
                  "region",
                  "city"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "user_agent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "user_agent",
          "ip_address",
          "location",
          "created_at",
          "last_active_at",
          "expires_at",
          "current"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "data"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/me/sessions" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/account/listMySessions
