Skip to main content
POST

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-07
required

Required date-based version header

Body

application/json

A request for creating a namespace with the specified namespace name.

name
string
required

The name of the namespace. Must be ASCII, must not contain the NUL character, and must be 1-512 characters long.

__default__ is reserved: it names the namespace requests address when they omit a namespace, so it always exists and cannot be created explicitly.

Required string length: 1 - 512
Pattern: ^[\x01-\x7F]+$
Example:

"example-namespace"

schema
object

Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when schema is present, only fields which are present in the fields object with a filterable: true are indexed. Note that filterable: false is not currently supported.

Example:

Response

A successful response.

A description of a namespace, including the name and record count.

name
string

The name of the namespace.

Example:

"example-namespace"

record_count
string<uint64>

The total number of records in the namespace. A 64-bit integer, serialized as a decimal string.

Example:

"20000"

schema
object

Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when schema is present, only fields which are present in the fields object with a filterable: true are indexed. Note that filterable: false is not currently supported.

Example:
indexed_fields
object

A list of all indexed metatadata fields in the namespace

size_bytes
string<uint64>

The total size of the namespace's data, in bytes, as a 64-bit integer serialized as a decimal string. Approximate: data written before size tracking reads as 0, and recently deleted data may still be counted; compaction converges the value.

Example:

"1048576"