POST
/
databases
curl --request POST \
     --url https://controller.us-east1-gcp.pinecone.io/databases \
     --header 'accept: text/plain' \
     --header 'content-type: application/json' \
     --data '
{
  "metric": "cosine",
  "pods": 1,
  "replicas": 1,
  "pod_type": "p1.x1"
}
'
"<string>"
curl --request POST \
     --url https://controller.us-east1-gcp.pinecone.io/databases \
     --header 'accept: text/plain' \
     --header 'content-type: application/json' \
     --data '
{
  "metric": "cosine",
  "pods": 1,
  "replicas": 1,
  "pod_type": "p1.x1"
}
'

Authorizations

Api-Key
string
header
required

An API Key is required to call Pinecone APIs. Get yours at https://app.pinecone.io/.

Body

application/json

Response

201
text/plain

The index has been successfully created

The response is of type string.