---
title: "Cache Get Namespace"
method: POST
path: "/api/v1.cache.namespace.get"
tags: ["Cache"]
---

# Cache Get Namespace

`POST /api/v1.cache.namespace.get`

Get cache namespace

## Request body

- CacheGetNamespaceIn
  - `name` string, required

## Response `200`

- CacheGetNamespaceOut
  - `name` string, required
  - `eviction_policy` 'no-eviction', required
  - `created` integer, required
  - `updated` integer, required

## Other responses

- `400`
- `401`
- `403`
- `422`

## Changes

- **2026-04-14** `7f5edfb12f87` — 1 breaking
  - the `name` request property's minLength was increased from `0` to `1`
- **2026-04-14** `14bcce06404b` — 1 breaking, 1 warning, 1 info
  - added the pattern `^[a-zA-Z0-9\-/_.=+]+$` to the request property `name`
  - the `name` request property's maxLength was set to `256`
  - the `name` response's property pattern `^[a-zA-Z0-9\-/_.=+]+$` was added for the status `200`
- **2026-04-14** `cc2072f5a56a` — 1 warning, 1 info
  - added the new `no-eviction` enum value to the `eviction_policy` response property for the response status `200`
  - removed the `NoEviction` enum value from the `eviction_policy` response property for the response status `200`
- **2026-04-13** `e6c44b12ecfb` — 2 breaking
  - the `created` response's property type/format changed from `string`/`date-time` to `integer`/`uint64` for status `200`
  - the `updated` response's property type/format changed from `string`/`date-time` to `integer`/`uint64` for status `200`
- **2026-03-31** `f62be26d2a53` — 10 breaking, 5 warning, 4 info
  - the `name` response property's maxLength was unset from `256` for the response status `200`
  - the `name` response property's minLength was decreased from `1` to `0` for the response status `200`
  - the `created` response's property type/format changed from `integer`/`uint64` to `string`/`date-time` for status `200`
  - the `detail` response's property type/format changed from `string`/`` to `array`/`` for status `422`
  - …15 more

[Change history](https://skmtc.dev/svix/apis/diom-api/changes/api/v1.cache.namespace.get/post.md)

---

[API](https://skmtc.dev/svix/apis/diom-api.md) · [All operations](https://skmtc.dev/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/svix/diom-api/revisions/2027bc3fbcfb/schema)
