---
title: Indexes
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Vectorize](https://developers.cloudflare.com/api/typescript/resources/vectorize)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Indexes

##### [List Vectorize Indexes](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/list)

client.vectorize.indexes.list(IndexListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [CreateIndex](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>) {config, created\_on, description, 2 more } >

GET/accounts/{account\_id}/vectorize/v2/indexes

##### [Get Vectorize Index](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/get)

client.vectorize.indexes.get(stringindexName, IndexGetParams {account\_id } params, RequestOptionsoptions?): [CreateIndex](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>) {config, created\_on, description, 2 more } | null

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}

##### [Create Vectorize Index](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/create)

client.vectorize.indexes.create(IndexCreateParams {account\_id, config, name, description } params, RequestOptionsoptions?): [CreateIndex](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>) {config, created\_on, description, 2 more } | null

POST/accounts/{account\_id}/vectorize/v2/indexes

##### [Delete Vectorize Index](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/delete)

client.vectorize.indexes.delete(stringindexName, IndexDeleteParams {account\_id } params, RequestOptionsoptions?): [IndexDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)>)| null

DELETE/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}

##### [Insert Vectors](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/insert)

client.vectorize.indexes.insert(stringindexName, IndexInsertParams {account\_id, body, unparsableBehavior } params, RequestOptionsoptions?): [IndexInsertResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert_response%20%3E%20(schema)>) {mutationId } | null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/insert

##### [Query Vectors](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/query)

client.vectorize.indexes.query(stringindexName, IndexQueryParams {account\_id, vector, filter, 3 more } params, RequestOptionsoptions?): [IndexQueryResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)>) {count, matches } | null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/query

##### [Upsert Vectors](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/upsert)

client.vectorize.indexes.upsert(stringindexName, IndexUpsertParams {account\_id, body, unparsableBehavior } params, RequestOptionsoptions?): [IndexUpsertResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert_response%20%3E%20(schema)>) {mutationId } | null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/upsert

##### [Delete Vectors By Identifier](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/delete_by_ids)

client.vectorize.indexes.deleteByIDs(stringindexName, IndexDeleteByIDsParams {account\_id, ids } params, RequestOptionsoptions?): [IndexDeleteByIDsResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_by_ids_response%20%3E%20(schema)>) {mutationId } | null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/delete\_by\_ids

##### [Get Vectors By Identifier](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/get_by_ids)

client.vectorize.indexes.getByIDs(stringindexName, IndexGetByIDsParams {account\_id, ids } params, RequestOptionsoptions?): [IndexGetByIDsResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_get_by_ids_response%20%3E%20(schema)>)| null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/get\_by\_ids

##### [Get Vectorize Index Info](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/info)

client.vectorize.indexes.info(stringindexName, IndexInfoParams {account\_id } params, RequestOptionsoptions?): [IndexInfoResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)>) {dimensions, processedUpToDatetime, processedUpToMutation, vectorCount } | null

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/info

##### [List Vectors](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/methods/list_vectors)

client.vectorize.indexes.listVectors(stringindexName, IndexListVectorsParams {account\_id, count, cursor } params, RequestOptionsoptions?): [IndexListVectorsResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)>) {count, isTruncated, totalCount, 3 more } | null

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/list

##### ModelsExpand Collapse

<details>

<summary>

CreateIndex {config, created\_on, description, 2 more }

</summary>

<details>

<summary>

config?: Config {dimensions, metric, preset }

</summary>

dimensions: number

Specifies the number of dimensions for the index

maximum1536

minimum1

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20dimensions">Link to this property</a>

<details>

<summary>

metric: "cosine"| "euclidean"| "dot-product"

Specifies the type of metric to use calculating distance.

</summary>

One of the following:

"cosine"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric%20%3E%20(member)%200">Link to this property</a>

"euclidean"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric%20%3E%20(member)%201">Link to this property</a>

"dot-product"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20metric">Link to this property</a>

<details>

<summary>

preset?: "@cf/baai/bge-small-en-v1.5"| "@cf/baai/bge-base-en-v1.5"| "@cf/baai/bge-large-en-v1.5"| 2 more

Specifies the preset to use for the index.

</summary>

One of the following:

"@cf/baai/bge-small-en-v1.5"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%200">Link to this property</a>

"@cf/baai/bge-base-en-v1.5"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%201">Link to this property</a>

"@cf/baai/bge-large-en-v1.5"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%202">Link to this property</a>

"openai/text-embedding-ada-002"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%203">Link to this property</a>

"cohere/embed-multilingual-v2.0"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(property)%20preset">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20config">Link to this property</a>

created\_on?: string

Specifies the timestamp the resource was created as an ISO8601 string.

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

description?: string

Specifies the description of the index.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

modified\_on?: string

Specifies the timestamp the resource was modified as an ISO8601 string.

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name?: string

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20create_index%20%3E%20(schema)>)

<details>

<summary>

IndexDeleteVectorsByID {count, ids }

</summary>

count?: number

The count of the vectors successfully deleted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_vectors_by_id%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

ids?: Array&lt;string&gt;

Array of vector identifiers of the vectors that were successfully processed for deletion.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_vectors_by_id%20%3E%20(schema)%20%3E%20(property)%20ids">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_vectors_by_id%20%3E%20(schema)>)

<details>

<summary>

IndexDimensionConfiguration {dimensions, metric }

</summary>

dimensions: number

Specifies the number of dimensions for the index

maximum1536

minimum1

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20dimensions">Link to this property</a>

<details>

<summary>

metric: "cosine"| "euclidean"| "dot-product"

Specifies the type of metric to use calculating distance.

</summary>

One of the following:

"cosine"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric%20%3E%20(member)%200">Link to this property</a>

"euclidean"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric%20%3E%20(member)%201">Link to this property</a>

"dot-product"

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)%20%3E%20(property)%20metric">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_dimension_configuration%20%3E%20(schema)>)

<details>

<summary>

IndexInsert {count, ids }

</summary>

count?: number

Specifies the count of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

ids?: Array&lt;string&gt;

Array of vector identifiers of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert%20%3E%20(schema)%20%3E%20(property)%20ids">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert%20%3E%20(schema)>)

<details>

<summary>

IndexQuery {count, matches }

</summary>

count?: number

Specifies the count of vectors returned by the search

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

<details>

<summary>

matches?: Array&lt;Match&gt;

Array of vectors matched by the search

</summary>

id?: string

Identifier for a Vector

maxLength64

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

metadata?: unknown

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

score?: number

The score of the vector according to the index’s distance metric

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

values?: Array&lt;number&gt;| null

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)%20%3E%20(property)%20matches">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query%20%3E%20(schema)>)

<details>

<summary>

IndexUpsert {count, ids }

</summary>

count?: number

Specifies the count of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

ids?: Array&lt;string&gt;

Array of vector identifiers of the vectors successfully inserted.

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert%20%3E%20(schema)%20%3E%20(property)%20ids">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert%20%3E%20(schema)>)

<details>

<summary>

IndexDeleteResponse = unknown| string| null

</summary>

One of the following:

unknown

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

string

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_response%20%3E%20(schema)>)

<details>

<summary>

IndexInsertResponse {mutationId }

</summary>

mutationId?: string

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_insert_response%20%3E%20(schema)>)

<details>

<summary>

IndexQueryResponse {count, matches }

</summary>

count?: number

Specifies the count of vectors returned by the search

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

<details>

<summary>

matches?: Array&lt;Match&gt;

Array of vectors matched by the search

</summary>

id?: string

Identifier for a Vector

maxLength64

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

metadata?: unknown

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20metadata">Link to this property</a>

namespace?: string| null

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20namespace">Link to this property</a>

score?: number

The score of the vector according to the index’s distance metric

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20score">Link to this property</a>

values?: Array&lt;number&gt;| null

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches%20%3E%20(items)%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)%20%3E%20(property)%20matches">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_query_response%20%3E%20(schema)>)

<details>

<summary>

IndexUpsertResponse {mutationId }

</summary>

mutationId?: string

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_upsert_response%20%3E%20(schema)>)

<details>

<summary>

IndexDeleteByIDsResponse {mutationId }

</summary>

mutationId?: string

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_by_ids_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_delete_by_ids_response%20%3E%20(schema)>)

IndexGetByIDsResponse = unknown

Array of vectors with matching ids.

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_get_by_ids_response%20%3E%20(schema)>)

<details>

<summary>

IndexInfoResponse {dimensions, processedUpToDatetime, processedUpToMutation, vectorCount }

</summary>

dimensions?: number

Specifies the number of dimensions for the index

maximum1536

minimum1

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20dimensions">Link to this property</a>

processedUpToDatetime?: string| null

Specifies the timestamp the last mutation batch was processed as an ISO8601 string.

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20processedUpToDatetime">Link to this property</a>

processedUpToMutation?: string

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20processedUpToMutation">Link to this property</a>

vectorCount?: number

Specifies the number of vectors present in the index

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)%20%3E%20(property)%20vectorCount">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_info_response%20%3E%20(schema)>)

<details>

<summary>

IndexListVectorsResponse {count, isTruncated, totalCount, 3 more }

</summary>

count: number

Number of vectors returned in this response

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20count">Link to this property</a>

isTruncated: boolean

Whether there are more vectors available beyond this response

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20isTruncated">Link to this property</a>

totalCount: number

Total number of vectors in the index

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20totalCount">Link to this property</a>

<details>

<summary>

vectors: Array&lt;Vector&gt;

Array of vector items

</summary>

id: string

Identifier for a Vector

maxLength64

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20vectors%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20vectors">Link to this property</a>

cursorExpirationTimestamp?: string| null

When the cursor expires as an ISO8601 string

formatdate-time

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20cursorExpirationTimestamp">Link to this property</a>

nextCursor?: string| null

Cursor for the next page of results

<a href="#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)%20%3E%20(property)%20nextCursor">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes%20%3E%20(model)%20index_list_vectors_response%20%3E%20(schema)>)

#### IndexesMetadata Index

##### [List Metadata Indexes](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/subresources/metadata_index/methods/list)

client.vectorize.indexes.metadataIndex.list(stringindexName, MetadataIndexListParams {account\_id } params, RequestOptionsoptions?): [MetadataIndexListResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)>) {metadataIndexes } | null

GET/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/metadata\_index/list

##### [Create Metadata Index](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/subresources/metadata_index/methods/create)

client.vectorize.indexes.metadataIndex.create(stringindexName, MetadataIndexCreateParams {account\_id, indexType, propertyName } params, RequestOptionsoptions?): [MetadataIndexCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_create_response%20%3E%20(schema)>) {mutationId } | null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/metadata\_index/create

##### [Delete Metadata Index](https://developers.cloudflare.com/api/typescript/resources/vectorize/subresources/indexes/subresources/metadata_index/methods/delete)

client.vectorize.indexes.metadataIndex.delete(stringindexName, MetadataIndexDeleteParams {account\_id, propertyName } params, RequestOptionsoptions?): [MetadataIndexDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/vectorize#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_delete_response%20%3E%20(schema)>) {mutationId } | null

POST/accounts/{account\_id}/vectorize/v2/indexes/{index\_name}/metadata\_index/delete

##### ModelsExpand Collapse

<details>

<summary>

MetadataIndexListResponse {metadataIndexes }

</summary>

<details>

<summary>

metadataIndexes?: Array&lt;MetadataIndex&gt;

Array of indexed metadata properties.

</summary>

<details>

<summary>

indexType?: "string"| "number"| "boolean"

Specifies the type of indexed metadata property.

</summary>

One of the following:

"string"

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType%20%3E%20(member)%200">Link to this property</a>

"number"

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType%20%3E%20(member)%201">Link to this property</a>

"boolean"

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20indexType">Link to this property</a>

propertyName?: string

Specifies the indexed metadata property.

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes%20%3E%20(items)%20%3E%20(property)%20propertyName">Link to this property</a>

</details>

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)%20%3E%20(property)%20metadataIndexes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_list_response%20%3E%20(schema)>)

<details>

<summary>

MetadataIndexCreateResponse {mutationId }

</summary>

mutationId?: string

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_create_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_create_response%20%3E%20(schema)>)

<details>

<summary>

MetadataIndexDeleteResponse {mutationId }

</summary>

mutationId?: string

The unique identifier for the async mutation operation containing the changeset.

maxLength36

<a href="#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_delete_response%20%3E%20(schema)%20%3E%20(property)%20mutationId">Link to this property</a>

</details>

[Link to this property](<#(resource)%20vectorize.indexes.metadata_index%20%3E%20(model)%20metadata_index_delete_response%20%3E%20(schema)>)