Menu
Create a collection
Create a collection
POST
/collectionsUse it in a workflow
- Add a step and choose the Pinecone connector.
- Pick the Create a collection action (under Indexes).
- Fill in the fields below, then reference the result from later steps as
{{createACollection.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"name": "string",
"source": "example-source-index"
}
Response
Returns 201 with an object. Read it in later steps with {{createACollection.response.data.<field>}}.
{
"name": "example-collection",
"status": "Initializing",
"environment": "us-east1-gcp",
"size": 10000000,
"dimension": 1536,
"vector_count": 120000
}
Need more? See the Pinecone guide for connection setup and behaviour shared by every action.
Was this page helpful?