Is there an option for
GET accounts/:account_identifier/storage/kv/namespaces/:namespace_identifier/values/:key_name
that returns the metadata with the value?
If so, I can’t find it in the documentation.
Currently, we have to use a hack that does a key scan since the keys endpoint returns metadata.
As of the initial rollout, the answer was no. You can make two calls in parallel (Get and List with prefix + limit), but that’s obviously not ideal. Hopefully they address this.
Right now, you’ll see them in lists, but we couldn’t change GETs due to backwards compatibility issues. The in-worker JS API has a call that lets you get them, but we haven’t rolled out an api.cloudflare.com API yet; most folks read from inside a worker, and so we prioritized that.
Yeah, that is what we are doing in our hack. Unfortunate extra overhead.