POST
/
collections
PINECONE_API_KEY = "YOUR_API_KEY"

curl -s -X POST "https://api.pinecone.io/collections" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -d '{
        "name": "example-collection",
        "source": "example-index"
  }'
{
  "name": "example-collection",
  "size": 10000000,
  "status": "Initializing",
  "dimension": 1536,
  "vector_count": 120000,
  "environment": "us-east1-gcp"
}
PINECONE_API_KEY = "YOUR_API_KEY"

curl -s -X POST "https://api.pinecone.io/collections" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -d '{
        "name": "example-collection",
        "source": "example-index"
  }'

Authorizations

Api-Key
string
header
required

Body

application/json

The desired configuration for the collection.

The configuration needed to create a Pinecone collection.

Response

201
application/json

The collection has been successfully created.

The CollectionModel describes the configuration and status of a Pinecone collection.