---
title: "List your CLI sessions, every org (session only)"
method: GET
path: "/v1/me/cli-sessions"
tags: ["Account"]
---

# List your CLI sessions, every org (session only)

`GET /v1/me/cli-sessions`

## Request

- Base URL: `https://api.openrelay.inc`
- URL: `https://api.openrelay.inc/v1/me/cli-sessions`
- Auth: HTTP bearer

Lists every orl auth login session you hold across your orgs, with device name, creation, last use and expiry. Needs a signed-in user session.
Sessions that expired or were revoked are listed too. An API key cannot call this: it cannot enumerate the user sessions that out-rank it.

Requires the `self.update` permission. See [Permissions](https://docs.openrelay.inc/docs/permissions) for the roles and API key permissions that include it.

## Response `200`

The caller's CLI sessions

- object
  - `sessions` object[], required
    - `createdAt` string, date-time, required
    - `deviceName` string
    - `expiresAt` string, date-time, required
    - `id` string, required
    - `lastUsedAt` string, date-time
    - `orgId` string, required
    - `orgName` string
    - `revokedAt` string, date-time

## Other responses

- `401`: Missing or invalid API key

## Changes

- **2026-10-26** `7fe59d94a9f5`: 1 info
  - added the optional property `requestId` to the response with the `401` status
- **2026-10-21** `dc9750cb25b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openrelay/apis/openrelay-api/changes/v1/me/cli-sessions/get.md)

---

[API](https://skmtc.dev/openrelay/apis/openrelay-api.md) - [All operations](https://skmtc.dev/openrelay/apis/openrelay-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openrelay/apis/openrelay-api/revisions/7fe59d94a9f5?raw)
