Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

List namespaces

Up to 100 namespaces are returned at a time by default, in sorted order (bitwise “C” collation). If the limit parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a pagination_token that you can use to get the next batch of namespaces. When the response does not include a pagination_token, there are no more namespaces to return.

For guidance and examples, see Manage namespaces.

Note: This operation is not supported for pod-based indexes.

curl
# To get the unique host for an index,
# see https://docs.pinecone.io/guides/manage-data/target-an-index
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl "https://$INDEX_HOST/namespaces" \
    -H "Api-Key: $PINECONE_API_KEY" \
    -H "X-Pinecone-Api-Version: 2026-04"

GET /namespaces

  • X-Pinecone-Api-Version (header, string, required) — Required date-based version header
  • limit (query, integer) — Max number namespaces to return per page.
  • paginationToken (query, string) — Pagination token to continue a previous listing operation.
  • prefix (query, string) — Prefix of the namespaces to list. Acts as a filter to return only namespaces that start with this prefix.
  • 200 — A successful response
  • 4XX — An unexpected error response.
  • 5XX — An unexpected error response.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu