Skip to main content
POST
/
bulk
/
imports
from pinecone import Pinecone, ImportErrorMode

pc = Pinecone(api_key="YOUR_API_KEY")

# To get the unique host for an index, 
# see https://docs.pinecone.io/guides/manage-data/target-an-index
index = pc.Index(host="INDEX_HOST")

index.start_import(
    uri="s3://BUCKET_NAME/PATH/TO/DIR",
    error_mode=ImportErrorMode.CONTINUE,
    integration_id="a12b3d4c-47d2-492c-a97a-dd98c8dbefde"
)

Documentation Index

Fetch the complete documentation index at: https://docs.pinecone.io/llms.txt

Use this file to discover all available pages before exploring further.

from pinecone import Pinecone, ImportErrorMode

pc = Pinecone(api_key="YOUR_API_KEY")

# To get the unique host for an index, 
# see https://docs.pinecone.io/guides/manage-data/target-an-index
index = pc.Index(host="INDEX_HOST")

index.start_import(
    uri="s3://BUCKET_NAME/PATH/TO/DIR",
    error_mode=ImportErrorMode.CONTINUE,
    integration_id="a12b3d4c-47d2-492c-a97a-dd98c8dbefde"
)

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:202601-alpha
required

Required date-based version header

Body

application/json

The request for the start_import operation.

uri
string
required

The URI of the bucket (or container) and import directory containing the namespaces and Parquet files you want to import. For example, s3://BUCKET_NAME/IMPORT_DIR for Amazon S3, gs://BUCKET_NAME/IMPORT_DIR for Google Cloud Storage, or https://STORAGE_ACCOUNT.blob.core.windows.net/CONTAINER_NAME/IMPORT_DIR for Azure Blob Storage. For more information, see Import records.

Required string length: 1 - 1500
integrationId
string

The id of the storage integration that should be used to access the data.

Maximum string length: 1000
errorMode
object

Indicates how to respond to errors during the import process.

Response

Successful import operation

The response for the start_import operation.

id
string

Unique identifier for the import operation.

Required string length: 1 - 1000
Example:

"101"