---
title: "List sessions for a project"
method: GET
path: "/v1/projects/{project_identifier}/sessions"
tags: ["sessions"]
---

# List sessions for a project

`GET /v1/projects/{project_identifier}/sessions`

## Path parameters

- `project_identifier` string, required — The project identifier: either project ID or project name.

## Query parameters

- `cursor` string, nullable — Cursor for pagination (session ID)
- `limit` integer — The max number of sessions to return at a time.
- `order` 'asc' | 'desc' — Sort order by ID: 'asc' (ascending) or 'desc' (descending).

## Response `200`

Successful Response

- GetSessionsResponseBody
  - `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).
  - `next_cursor` string, nullable, required

## Other responses

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

---

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