Create a namespace
This feature is in early access and available only on the
2025-10
version of the API.create_namespace
operation. Specify a name for the namespace and, optionally, the metadata fields to index.
curl
curl
List all namespaces in an index
Use thelist_namespaces
operation to list all namespaces in a serverless index.
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.
Describe a namespace
Use thedescribe_namespace
operation to get details about a namespace in a serverless index, including the total number of vectors in the namespace.
Delete a namespace
Use thedelete_namespace
operation to delete a namespace in a serverless index.
Deleting a namespace is irreversible. All data in the namespace is permanently deleted.
Rename a namespace
Pinecone does not support renaming namespaces directly. Instead, you must delete the records in the namespace and upsert the records to a new namespace.Move records to a new namespace
Pinecone does not support moving records between namespaces directly. Instead, you must delete the records in the old namespace and upsert the records to the new namespace.Use the default namespace
To use the default namespace for upserts, queries, or other data operations, set thenamespace
parameter to __default__
, for example: