---
title: "Get current session ID"
method: GET
path: "/api/sessions/current"
tags: ["Sessions"]
---

# Get current session ID

`GET /api/sessions/current`

## Request

- Base URL: `/api/plugins/consensys-asko11y-app/resources` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/plugins/consensys-asko11y-app/resources/api/sessions/current`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Returns the ID of the current active session for the user/org, or empty string if no current session is set.

## Headers

- `X-Grafana-Org-Id` string

## Response `200`

Current session ID

- object
  - `sessionId` string: Current session ID (empty string if none)

## Other responses

- `401`: Unauthorized (missing or invalid authentication)
- `500`: Internal server error

---

[API](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) - [All operations](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/revisions/ee3ccd0f186d?raw)
