# Vectorize

## Indexes

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexDimensionConfigurationParam">IndexDimensionConfigurationParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#CreateIndex">CreateIndex</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexDimensionConfiguration">IndexDimensionConfiguration</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexDeleteByIDsResponse">IndexDeleteByIDsResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexGetByIDsResponse">IndexGetByIDsResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexInfoResponse">IndexInfoResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexInsertResponse">IndexInsertResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexListVectorsResponse">IndexListVectorsResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexQueryResponse">IndexQueryResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexUpsertResponse">IndexUpsertResponse</a>

Methods:

- <code title="post /accounts/{account_id}/vectorize/v2/indexes">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexNewParams">IndexNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#CreateIndex">CreateIndex</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/vectorize/v2/indexes">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexListParams">IndexListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#CreateIndex">CreateIndex</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/vectorize/v2/indexes/{index_name}">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexDeleteParams">IndexDeleteParams</a>) (\*interface{}, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/delete_by_ids">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.DeleteByIDs">DeleteByIDs</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexDeleteByIDsParams">IndexDeleteByIDsParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexDeleteByIDsResponse">IndexDeleteByIDsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/vectorize/v2/indexes/{index_name}">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexGetParams">IndexGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#CreateIndex">CreateIndex</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/get_by_ids">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.GetByIDs">GetByIDs</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexGetByIDsParams">IndexGetByIDsParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexGetByIDsResponse">IndexGetByIDsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/vectorize/v2/indexes/{index_name}/info">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.Info">Info</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexInfoParams">IndexInfoParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexInfoResponse">IndexInfoResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/insert">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.Insert">Insert</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexInsertParams">IndexInsertParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexInsertResponse">IndexInsertResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/vectorize/v2/indexes/{index_name}/list">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.ListVectors">ListVectors</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexListVectorsParams">IndexListVectorsParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexListVectorsResponse">IndexListVectorsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/query">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.Query">Query</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexQueryParams">IndexQueryParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexQueryResponse">IndexQueryResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/upsert">client.Vectorize.Indexes.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexService.Upsert">Upsert</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexUpsertParams">IndexUpsertParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexUpsertResponse">IndexUpsertResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### MetadataIndex

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexNewResponse">IndexMetadataIndexNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexListResponse">IndexMetadataIndexListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexDeleteResponse">IndexMetadataIndexDeleteResponse</a>

Methods:

- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/create">client.Vectorize.Indexes.MetadataIndex.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexNewParams">IndexMetadataIndexNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexNewResponse">IndexMetadataIndexNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/list">client.Vectorize.Indexes.MetadataIndex.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexListParams">IndexMetadataIndexListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexListResponse">IndexMetadataIndexListResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/vectorize/v2/indexes/{index_name}/metadata_index/delete">client.Vectorize.Indexes.MetadataIndex.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, indexName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexDeleteParams">IndexMetadataIndexDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize">vectorize</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/vectorize#IndexMetadataIndexDeleteResponse">IndexMetadataIndexDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
