Read the metadata for a key
GET
/accounts/{account_id}/storage/kv/namespaces/{namespace_id}/metadata/{key_name} https://api.cloudflare.com/client/v4
Returns the metadata associated with the given key in the given namespace. Use URL-encoding to use special characters (for example, :, !, %) in the key name.
Parameters
path Path Parameters
| Name | Type |
|---|---|
key_name
required
| type WorkersKvKeyName = string |
namespace_id
required
| type WorkersKvNamespaceIdentifier = string |
account_id
required
| type WorkersKvIdentifier = string |
Responses
200 application/json
Read the metadata for a key response.
interface WorkersKvApiResponseCommon {
errors:WorkersKvMessages ;
messages:WorkersKvMessages ;
success: true;
} & { result?:WorkersKvListMetadata ; }
errors:
messages:
success: true;
} & { result?:
Client Errors
4XX application/json
Read the metadata for a key response failure.
interface WorkersKvApiResponseCommonFailure {
errors:WorkersKvMessages ;
messages:WorkersKvMessages ;
result: {} | null;
success: false;
}
errors:
messages:
result: {} | null;
success: false;
}