# KV

## Namespaces

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Namespace">Namespace</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceDeleteResponse">NamespaceDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkDeleteResponse">NamespaceBulkDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkGetResponse">NamespaceBulkGetResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkUpdateResponse">NamespaceBulkUpdateResponse</a>

Methods:

- <code title="post /accounts/{account_id}/storage/kv/namespaces">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.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/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceNewParams">NamespaceNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Namespace">Namespace</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceUpdateParams">NamespaceUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Namespace">Namespace</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/storage/kv/namespaces">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.List">List</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/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceListParams">NamespaceListParams</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#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Namespace">Namespace</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceDeleteParams">NamespaceDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceDeleteResponse">NamespaceDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/delete">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.BulkDelete">BulkDelete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkDeleteParams">NamespaceBulkDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkDeleteResponse">NamespaceBulkDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/get">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.BulkGet">BulkGet</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkGetParams">NamespaceBulkGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkGetResponse">NamespaceBulkGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.BulkUpdate">BulkUpdate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkUpdateParams">NamespaceBulkUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceBulkUpdateResponse">NamespaceBulkUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}">client.KV.Namespaces.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceGetParams">NamespaceGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Namespace">Namespace</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Keys

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Key">Key</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkDeleteResponse">NamespaceKeyBulkDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkGetResponse">NamespaceKeyBulkGetResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkUpdateResponse">NamespaceKeyBulkUpdateResponse</a>

Methods:

- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/keys">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyListParams">NamespaceKeyListParams</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#CursorLimitPagination">CursorLimitPagination</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#Key">Key</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/delete">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyService.BulkDelete">BulkDelete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkDeleteParams">NamespaceKeyBulkDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkDeleteResponse">NamespaceKeyBulkDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk/get">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyService.BulkGet">BulkGet</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkGetParams">NamespaceKeyBulkGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkGetResponse">NamespaceKeyBulkGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/bulk">client.KV.Namespaces.Keys.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyService.BulkUpdate">BulkUpdate</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkUpdateParams">NamespaceKeyBulkUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceKeyBulkUpdateResponse">NamespaceKeyBulkUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Metadata

Response Types:

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

Methods:

- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name}">client.KV.Namespaces.Metadata.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceMetadataService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, keyName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceMetadataGetParams">NamespaceMetadataGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceMetadataGetResponse">NamespaceMetadataGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Values

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueUpdateResponse">NamespaceValueUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueDeleteResponse">NamespaceValueDeleteResponse</a>

Methods:

- <code title="put /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}">client.KV.Namespaces.Values.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, keyName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueUpdateParams">NamespaceValueUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueUpdateResponse">NamespaceValueUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}">client.KV.Namespaces.Values.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, keyName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueDeleteParams">NamespaceValueDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueDeleteResponse">NamespaceValueDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/values/{key_name}">client.KV.Namespaces.Values.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, namespaceID <a href="https://pkg.go.dev/builtin#string">string</a>, keyName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv">kv</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/kv#NamespaceValueGetParams">NamespaceValueGetParams</a>) (\*http.Response, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
