---
title: "POST /gateway-get-cache"
method: POST
path: "/gateway-get-cache"
tags: ["Gateway"]
---

# POST /gateway-get-cache

`POST /gateway-get-cache`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/gateway-get-cache`
- Auth: none declared

## Request body

- GatewayGetCache: gatewayGetCache is a command that get cache settings
  - `json` boolean: Set output format to JSON
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

gatewayGetCacheResponse wraps response body.

- CacheConfigPart
  - `cache_enable` boolean
  - `cache_encryption_key` string
  - `cache_ttl` string
  - `new_proactive_cache_enable` boolean
  - `proactive_cache_dump_interval` string
  - `proactive_cache_enable` boolean
  - `proactive_cache_minimum_fetching_time` string

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
