Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

Create a new project

JavaScript
// Requires Node.js SDK v8.2.0 or later
import { AdminClient } from '@pinecone-database/pinecone';

// Reads PINECONE_CLIENT_ID and PINECONE_CLIENT_SECRET from the environment
const admin = new AdminClient();

const project = await admin.projects.create({ name: 'example-project' });
console.log(project);
Go
// Requires Go SDK v6.0.0 or later
package main

import (
    "context"
    "fmt"
    "log"
    "os"

    "github.com/pinecone-io/go-pinecone/v6/pinecone"
)

func main() {
    ctx := context.Background()

    adminClient, err := pinecone.NewAdminClientWithContext(ctx, pinecone.NewAdminClientParams{
        ClientId:     os.Getenv("PINECONE_CLIENT_ID"),
        ClientSecret: os.Getenv("PINECONE_CLIENT_SECRET"),
    })
    if err != nil {
        log.Fatalf("Failed to create AdminClient: %v", err)
    }

    project, err := adminClient.Project.Create(ctx, &pinecone.CreateProjectParams{
        Name: "example-project",
    })
    if err != nil {
        log.Fatalf("Failed to create project: %v", err)
    }
    fmt.Printf("Successfully created project: %v\n", project.Id)
}
Terraform
# Requires Terraform provider v4.0.0 or later
resource "pinecone_project" "example" {
  name = "example-project"
}
curl
PINECONE_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"

curl "https://api.pinecone.io/admin/projects" \
    -H "X-Pinecone-Api-Version: 2026-04" \
	-H "Authorization: Bearer $PINECONE_ACCESS_TOKEN" \
	-d '{
        "name":"example-project"
        }'
curl
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "example-project",
  "max_pods": 0,
  "force_encryption_with_cmek": false,
  "organization_id": "string",
  "created_at": "2025-03-16T22:46:45.030Z"
}
POST/admin/projects

Create a new project

1 parameter
  • X-Pinecone-Api-Versionstringheaderrequired

    Required date-based version header

Suggest an edit

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

Export
Documentation menu