---
title: "Get KV bucket details"
method: GET
path: "/storage/kv/{bucket}"
tags: ["KV Buckets"]
---

# Get KV bucket details

`GET /storage/kv/{bucket}`

Retrieves information about a specific KV bucket

## Path parameters

- `bucket` string, required

## Response `200`

Successfully retrieved bucket information

- KVBucketResponse
  - `body` object
    - `status` object
      - `backing_store` string
      - `bucket` string
      - `description` string
      - `bytes` integer
      - `history` integer
      - `ttl` integer
      - `is_compressed` boolean
    - `config` object
      - `bucket` string
      - `max_bytes` integer
      - `max_value_size` integer
      - `history` integer
      - `num_replicas` integer
    - `stream_info` object
      - `cluster` object
        - `leader` string
        - `name` string
        - `replicas` object[]
          - `active` integer
          - `current` boolean
          - `name` string
      - `config` object
        - `allow_direct` boolean
        - `allow_rollup_hdrs` boolean
        - `compression` string
        - `consumer_limits` object
          - `inactive_threshold` integer
          - `max_ack_pending` integer
        - `deny_delete` boolean
        - `discard` 'old' | 'new'
        - `duplicate_window` integer
        - `index_config` object
          - `engine` string
          - `idBy` string
          - `partitions` integer
          - `version` integer
        - `max_age` integer
        - `max_bytes` integer
        - `max_consumers` integer
        - `max_msg_size` integer
        - `max_msgs` integer
        - `max_msgs_per_subject` integer
        - `mirror_direct` boolean
        - `name` string
        - `num_replicas` integer
        - `retention` 'Limits' | 'Interest' | 'WorkQueue'
        - `storage` 'file' | 'memory'
        - `subject_transform` object
          - `dest` string
          - `src` string
        - `subjects` string[]
        - `metadata` object
      - `created` string, date-time
      - `state` object
        - `bytes` integer
        - `consumer_count` integer
        - `deleted` integer[]
        - `first_seq` integer
        - `first_ts` string, date-time
        - `last_seq` integer
        - `last_ts` string, date-time
        - `messages` integer
        - `num_deleted` integer
        - `num_subjects` integer
        - `subjects` object
  - `metadata` Metadata
    - `bucket` string — Bucket name
    - `duration` string — Operation duration
    - `field` string — Search field
    - `hits` integer — Number of hits
    - `index_duration` string — Index search duration
    - `index_hits` integer — Number of index hits
    - `index_name` string — Index name
    - `index_partitions` integer — Number of index partitions
    - `key` string — Entry key
    - `limit` integer — Query limit
    - `partitions` integer — Number of partitions
    - `search` string — Search term
    - `stream` string — Stream name
    - `subject` string — Subject pattern

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway-5.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway-5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway-5/revisions/072de10ada5e/schema)
