Skip to main content
POST
Import source documents from a project connector

Authorizations

Authorization
string
header
required

Session token from POST /auth/login, sent as Authorization: Bearer <token>.

Headers

X-Pinecone-Api-Version
string
default:2026-07

Date-based contract version, echoed back on the same header. Omit for the default (2026-07); send unstable for the in-development surface. An unrecognized value is rejected with 400 unsupported_api_version.

Path Parameters

slug
string
required

Context slug or UUID.

Body

application/json

Which connector items to pull, and where to land them.

connector_id
string
required

The linked connector to import from.

folder
string

Connector folder id to import

files
string[]

Connector file ids to import

A connector file id.

item_type
string
default:folder

Whether folder or files selects the sources.

path
string

Subdirectory under the source tree (default uploads)

Response

Import accepted (state: importing)

What every context-workflow trigger returns. The work is asynchronous: poll GET /tasks/{task_id}. The per-workflow booleans duplicate state and appear only where a workflow's contract names one.

task_id
string
required

The enqueued task. Poll it at GET /tasks/{id}.

state
string
required

The forward-looking status the trigger put the context into.

exploring
boolean

Duplicates state; present only for explore

profiling
boolean

Duplicates state; present only for profile

importing
boolean

Duplicates state; present only for the import/curate triggers