List project-wide query sessions (newest first)
Every conversation thread in the project, newest first.
GET /sessions
curl --request GET \
--url https://{host}/api/sessions \
--header 'Authorization: Bearer <token>' \
--header 'X-Pinecone-Api-Version: <x-pinecone-api-version>'import requests
url = "https://{host}/api/sessions"
headers = {
"Authorization": "Bearer <token>",
"X-Pinecone-Api-Version": "<x-pinecone-api-version>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: "GET", headers: {"Authorization": "Bearer <token>", "X-Pinecone-Api-Version": "<x-pinecone-api-version>"}};
fetch("https://{host}/api/sessions", options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Pinecone-Api-Version: <x-pinecone-api-version>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("X-Pinecone-Api-Version", "<x-pinecone-api-version>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/sessions")
.header("Authorization", "Bearer <token>")
.header("X-Pinecone-Api-Version", "<x-pinecone-api-version>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["X-Pinecone-Api-Version"] = '<x-pinecone-api-version>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"id": "<string>",
"project_id": "<string>",
"workspace": "<string>",
"created_by": "<string>",
"scope": [
"<string>"
],
"title": "<string>",
"system_prompt": "<string>",
"guardrails": "<string>",
"models": [
"<string>"
],
"tools": [
"<string>"
],
"workflow": "<string>",
"last_query_id": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
],
"queries_active": 123
}Authorizations
Section titled “Authorizations”AuthorizationstringrequiredSession token from POST /auth/login, sent as Authorization: Bearer <token>.
Headers
Section titled “Headers”X-Pinecone-Api-Version?stringDate-based contract version, echoed back on the same header. Omit for the default (2026-07); send unstable for the in-development surface. An unrecognized value is rejected with 400 unsupported_api_version.
Query Parameters
Section titled “Query Parameters”limit?integerMaximum sessions to return.
Required range: 1 <= x <= 200
queries_active?booleanAlso count the project's in-flight query turns, returned as queries_active.
Response
Section titled “Response”200 — Sessions across the project
The sessions, newest first.
sessionsobject[]requiredThe conversation threads.
Show child attributes
idstringrequiredSession id, ses_<uuid>.
project_idstringrequiredThe Pinecone project that owns the session.
workspace?stringOwning workspace. Absent off a workspace-enabled cluster.
created_bystringrequiredPrincipal whose first turn created the session.
scopestring[]requiredPinned context UUIDs (1–10) every turn searches.
title?string | nullDisplay title derived from the opening ask. Null until one is written.
system_prompt?string | nullInstructions pinned at session creation. Null when none were given.
guardrails?string | nullGuardrails pinned at session creation. Null when none were given.
modelsstring[]requiredPinned model fallback list, in preference order.
toolsstring[]requiredTool names the session's turns may call.
workflow?string | nullThe workflow this session's turns run
last_query_id?string | nullThe most recent turn. Null on a session with no turns yet.
created_atstringrequiredWhen the session was created.
updated_atstringrequiredWhen the session last changed.
queries_active?integerQuery turns in flight project-wide at the time of the read. Present only when the request asked for it with queries_active=true.