younifyd
Menu

Create an index

Create an index

POST/indexes

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Create an index action (under Indexes).
  3. Fill in the fields below, then reference the result from later steps as {{createAnIndex.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

namestring

The name of the index. Must be unique within the project, start and end with an alphanumeric character, and contain only lower case alphanumeric characters or '-'. Generated automatically if not provided.

deploymentoneOf

The deployment configuration for index creation. The `deployment_type` field selects the infrastructure model. Defaults to `managed` (serverless) in `us-east-1` on `aws` if omitted. - `managed`: Serverless infrastructure managed by Pinecone, including full-text search indexes. - `byoc`: Bring-your-own-compute.

schemaobjectrequired

The fields the index searches over: dense vectors, sparse vectors, and string fields searched by full-text search or by embeddings Pinecone derives from their text. An index has one dense vector slot and one sparse vector slot: at most one field can be a `dense_vector` field or declare `embed`, and at most one can be a `sparse_vector` field or declare `sparse_embed`. Metadata isn't declared in the schema; it's indexed automatically from the documents you upsert.

fieldsobjectrequired

A map of field names to field configurations. Names are at most 64 bytes and can't start with `$`. Names starting with `_` are reserved; to create a vector index with the reserved `_values` and `_sparse_values` fields, see [Adopt the Documents API](https://docs.pinecone.io/guides/index-data/adopt-the-documents-api#what-this-means-for-your-existing-code).

cmek_idstring

The ID of a customer-managed encryption key (CMEK) to use for this index. Requires CMEK to be enabled for your organization. Encrypted indexes cannot have `full_text_search` fields: a request that sets `cmek_id` and declares one is rejected, and a project that enforces CMEK rejects any schema with a `full_text_search` field with `412`.

read_capacityoneOf

By default the index will be created with read capacity mode `OnDemand`, for managed and BYOC indexes alike. If you prefer to allocate dedicated read nodes for your workload, you must specify mode `Dedicated` and additional configurations for `node_type` and `scaling`.

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

json
{
  "schema": {
    "fields": {
      "body": {
        "full_text_search": {
          "language": "en"
        },
        "type": "string"
      },
      "your_vector": {
        "dimension": 1536,
        "metric": "cosine",
        "type": "dense_vector"
      }
    }
  },
  "name": "example-index",
  "deployment": null,
  "cmek_id": "arn:aws:kms:us-east-1:123456789012:key/mrk-abc123",
  "read_capacity": null,
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  },
  "deletion_protection": "disabled"
}

Response

Returns 201 with an object. Read it in later steps with {{createAnIndex.response.data.<field>}}.

namestring

The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.

hoststring

The URL address where the index is hosted.

private_hoststring

The private endpoint URL of an index.

statusobject

The current status of the index.

readybooleanrequired

Whether the index is ready for use.

statestringrequired

The current state of the index. Possible values: `Initializing`, `InitializationFailed`, `Failed`, `ScalingUp`, `ScalingDown`, `ScalingUpPodSize`, `Terminating`, `Ready`, or `Disabled`.

deploymentoneOf

The deployment configuration of a Pinecone index. The `deployment_type` field indicates which infrastructure model the index uses. - `pod`: Dedicated pod-based infrastructure. Suitable for workloads that require predictable performance. - `managed`: Serverless infrastructure managed by Pinecone, including full-text search indexes. Scales automatically; billed per usage. - `byoc`: Bring-your-own-compute. Runs in customer-managed infrastructure.

read_capacityoneOf

Response containing read capacity configuration

source_collectionstring

The name of the collection this index was created from, if any.

source_backup_idstring

The ID of the backup this index was restored from, if any.

cmek_idstring

The ID of the customer-managed encryption key (CMEK) used to encrypt this index, if any.

schemaobject

The schema of a Pinecone index. The schema defines the typed fields that documents in the index can contain, including vector fields, string fields searched by full-text search or by embeddings, and metadata fields.

fieldsobjectrequired

A map of field names to their configurations. Indexes that are served by the vectors API — created with the reserved `_values` / `_sparse_values` schema, or created by an earlier API version from `dimension`, `metric`, and `vector_type` — report their vector fields under the reserved names `_values` (dense) and `_sparse_values` (sparse), and any metadata fields configured for filtering as legacy fields carrying only `filterable`. Dense vectors-API indexes always report both `_values` and `_sparse_values`, regardless of how they were created.

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

json
{
  "name": "example-index",
  "host": "semantic-search-c01b5b5.svc.us-west1-gcp.pinecone.io",
  "status": {
    "ready": true,
    "state": "Ready"
  },
  "deployment": null,
  "schema": {
    "fields": {
      "body": {
        "embed": {
          "dimension": 1024,
          "metric": "cosine",
          "model": "llama-text-embed-v2"
        },
        "full_text_search": {
          "language": "en",
          "stemming": false,
          "stop_words": false
        },
        "sparse_embed": {
          "model": "pinecone-sparse-english-v0"
        },
        "store_text": true,
        "type": "string"
      },
      "title": {
        "full_text_search": {
          "language": "en",
          "stemming": false,
          "stop_words": false
        },
        "store_text": true,
        "type": "string"
      }
    }
  },
  "deletion_protection": "disabled",
  "private_host": "semantic-search-c01b5b5.svc.private.us-west1-gcp.pinecone.io",
  "read_capacity": null,
  "source_collection": "movie-embeddings",
  "source_backup_id": "670e8400-e29b-41d4-a716-446655440000",
  "cmek_id": "arn:aws:kms:us-east-1:123456789012:key/mrk-abc123",
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  }
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.

Create an index — Pinecone — Documentation