POST
/
assistant
/
files
/
{assistant_name}
PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="YOUR_ASSISTANT_NAME"
LOCAL_FILE_PATH="/Users/jdoe/Downloads/example_file.txt"

curl --request POST \
  --url prod-1-data.ke.pinecone.io/assistant/files/$ASSISTANT_NAME \
  --header "Api-Key: $PINECONE_API_KEY" \
  -F "file=@$LOCAL_FILE_PATH"
{
  "name": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {},
  "created_on": "2023-11-07T05:31:56Z",
  "updated_on": "2023-11-07T05:31:56Z",
  "status": "Processing"
}

This feature is in public beta and is not recommended for production usage. Join the beta waitlist and review the review the preview terms for more details

PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="YOUR_ASSISTANT_NAME"
LOCAL_FILE_PATH="/Users/jdoe/Downloads/example_file.txt"

curl --request POST \
  --url prod-1-data.ke.pinecone.io/assistant/files/$ASSISTANT_NAME \
  --header "Api-Key: $PINECONE_API_KEY" \
  -F "file=@$LOCAL_FILE_PATH"

Authorizations

Api-Key
string
headerrequired

Pinecone API Key

Path Parameters

assistant_name
string
required

The name of the base to upload files to.

Body

application/octet-stream · string

The body is of type string.

Response

200 - application/json
name
string
required

The name of the file.

id
string
required

The UUID of the file.

metadata
object

A dictionary containing metadata for the assistant.

created_on
string

When the file was first uploaded.

updated_on
string

When the file was last updated.

status
enum<string>

The status of the file.

Available options:
Processing,
Available,
Deleting,
ProcessingFailed

Was this page helpful?