Skip to main content
POST
Full-text search is in public preview and uses API version 2026-01.alpha. APIs may continue to evolve before general availability.
Fetches schema-defined documents by ID from a namespace.
Fetch is ID-only. The endpoint does not accept a filter parameter — text match operators ($match_phrase, $match_all, $match_any) and metadata filter expressions are rejected with a 400 error. To retrieve documents matching a metadata expression, use POST /namespaces/{namespace}/documents/search with a filter to get IDs, then fetch by ID.
include_fields is optional. When omitted, all stored fields on each document are returned.

Authorizations

Api-Key
string
header
required

An API Key is required to call Pinecone APIs. Get yours from the console.

Headers

X-Pinecone-Api-Version
string
default:2026-01.alpha
required

Required date-based version header

Path Parameters

namespace
string
required

The namespace to fetch documents from.

Body

application/json

The request for the fetch_documents operation.

ids
string[]
required

A list of document IDs to fetch.

Required array length: 1 - 1000 elements
include_fields
string[]

The document fields to include in the response. If not specified, all fields are returned.

Response

A successful fetch response.

The response for the fetch_documents operation.

documents
object
required

A map of document IDs to their fetched documents.

namespace
string
required

The namespace the documents were fetched from.

Example:

"my-namespace"

usage
object
required

Usage information for the fetch_documents operation.

Example: