---
title: "Get session by ID or session_id"
method: GET
path: "/v1/sessions/{session_identifier}"
tags: ["sessions"]
---

# Get session by ID or session_id

`GET /v1/sessions/{session_identifier}`

## Path parameters

- `session_identifier` string, required — The session identifier: either a GlobalID or user-provided session_id string.

## Response `200`

Successful Response

- GetSessionResponseBody
  - `data` SessionData, required
    - `id` string, required
    - `session_id` string, required
    - `project_id` string, required
    - `start_time` string, date-time, required
    - `end_time` string, date-time, required
    - `traces` SessionTraceData[], required
      - `id` string, required
      - `trace_id` string, required
      - `start_time` string, date-time, required
      - `end_time` string, date-time, required
    - `token_count_prompt` integer — Cumulative prompt token count across all spans in the session.
    - `token_count_completion` integer — Cumulative completion token count across all spans in the session.
    - `token_count_total` integer — Cumulative total token count across all spans in the session (prompt + completion).

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity

## Changes

- **2026-05-05** `29fe492bf1e2` — 3 info
  - added the optional property `data/token_count_completion` to the response with the `200` status
  - added the optional property `data/token_count_prompt` to the response with the `200` status
  - added the optional property `data/token_count_total` to the response with the `200` status
- **2026-04-29** `c81391216eb5` — 3 warning
  - removed the optional property `data/token_count_completion` from the response with the `200` status
  - removed the optional property `data/token_count_prompt` from the response with the `200` status
  - removed the optional property `data/token_count_total` from the response with the `200` status

[Change history](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api/changes/v1/sessions/:session_identifier/get.md)

---

[API](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api.md) · [All operations](https://skmtc.dev/arize-ai/apis/arize-phoenix-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arize-ai/arize-phoenix-rest-api/revisions/f440cb6427a5/schema)
