Skip to main content
GET
Fetch one query (turn)

Authorizations

Authorization
string
header
required

Session token from POST /auth/login, sent as Authorization: Bearer <token>.

Headers

X-Pinecone-Api-Version
string
default:2026-07

Date-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.

Path Parameters

id
string
required

Query turn id.

Response

The query

One query turn. Read the answer from output[].content[].text.

id
string
required

Turn id, qry_<uuid>.

object
string
required

Always query, so a caller can tell this document apart from a session.

session_id
string
required

The session this turn belongs to. A turn that started a new one names it here.

created
integer<int64>
required

Unix seconds

status
string
required

Where the turn is in its lifecycle.

input
object[]
required

The stored message array (plain-text content).

output
object[]
required

Output items; assistant text is {role, content:[{type: output_text, text}]}

citations
object[]
required

What the answer was grounded in. Empty on a turn that cited nothing.

steps
object[]
required

The turn's reasoning steps, reduced from its response.step events.

usage
object
required

The turn's token totals. Embed and rerank bill on their own seam and are not counted here.

runtime_ms
integer<int64>
required

Wall time from turn start to terminal state.

model
string | null

The model that actually answered. Null before the turn resolves one.

error
string | null

Failure detail. Set on a failed turn.

previous_query_id
string | null

The turn this one continues. Null on a session's first turn.

comparison
object[] | null

The sibling turns of the same Compare run. Null on a normal single query.

feedback
object | null

Thumbs-up/down recorded on this turn. Null until a caller submits some.

output_json
object | null

Present when a shape was used, or on a retrieval-only turn

max_steps
integer<int64> | null

The agentic tool-loop step cap this turn actually ran with, whether the request set it or the deployment default supplied it.

thinking_level
string | null

The thinking level this turn actually ran at. Null on the Claude-backed search_cc, which has no equivalent knob.

rollup
Response turn rollup · object | null

End-of-turn counters. Null on a turn the runtime never closed.

synthesis
Response synthesis · object | null

The answer completion's cost. Null on a turn that skipped synthesis, as retrieval-only turns do.

trace_ref
string | null

Blob key of the persisted trace. Fetch the trace itself from GET /queries/{id}/trace.