> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/databases/in-memory-db/api.md).

# API

The <code class="expression">space.vars.ionos\_cloud</code> Database as a Service (DBaaS) In-Memory DB API lets you provision and manage fully managed In-Memory DB clusters for caching, real-time analytics, and message brokering workloads.

## In-Memory DB API versions

DBaaS In-Memory DB offers two versions of the In-Memory DB API. **Version 2 (2.0.0)** is the recommended version for production workloads, while **Version 1 (1.0.0)** is the legacy implementation.

**In-Memory DB v1** and **In-Memory DB v2** refer to <code class="expression">space.vars.ionos\_cloud</code>'s DBaaS API versions, not In-Memory DB software versions.

{% hint style="success" %}
**Note:** The **In-Memory DB v2 API** is now in General Availability (GA). Any <code class="expression">space.vars.ionos\_cloud</code> contract can provision In-Memory DB v2 clusters without prior activation. For more information, see [<mark style="color:blue;">In-Memory DB v2 API</mark>](https://api.ionos.com/docs/in-memory-db/v2/#tag/In-Memory-DB-API-Versions).
{% endhint %}

{% hint style="warning" %}
**Important:**

* **In-Memory DB v2**, powered by [<mark style="color:blue;">Valkey</mark>](https://valkey.io/), is now available, bringing Valkey (Redis®-compatible) engines in versions 8, 8.1, and 9. It also adds extended snapshot retention and native <code class="expression">space.vars.ionos\_cloud</code> Observability integration.
* Use **In-Memory DB v2** to create clusters using either the [<mark style="color:blue;">DCD</mark>](/cloud/databases/in-memory-db/how-tos/v2.md) or the [<mark style="color:blue;">API</mark>](https://api.ionos.com/docs/in-memory-db/v2/).
* Creation of clusters using In-Memory DB v1 is deprecated through the [<mark style="color:blue;">DCD</mark>](/cloud/databases/in-memory-db/how-tos/v1.md) and only limited operations are supported on legacy clusters.
* Creation of v1 clusters through the [<mark style="color:blue;">API</mark>](/cloud/databases/in-memory-db/api/v1-api.md) will be deprecated as of **July 31, 2026**.
* An automatic migration from v1 to v2 is impossible. You must manually migrate existing v1 clusters to the new v2 infrastructure through the v2 API. For step-by-step instructions, see [<mark style="color:blue;">Manual migration</mark>](/cloud/databases/in-memory-db/how-tos/migrate-from-v1-v2.md#manual-migration).
  {% endhint %}

## What can you do with the In-Memory DB APIs?

The In-Memory DB API lets you provision and manage In-Memory DB clusters programmatically using standard `HTTPS` requests.

You can also use the In-Memory DB API to:

* Provision and configure clusters with your chosen size, version, and persistence settings.
* Monitor the operational status of any cluster.
* Retrieve and list clusters in your account.
* Modify cluster configuration, such as scaling resources or updating settings.
* Delete clusters you no longer need.
* Manage and retrieve snapshots for a cluster.
* Restore a cluster from a snapshot and track restore progress.
* Connect In-Memory DB instances to your managed Kubernetes clusters.

## Quick links

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:blue;"><strong>In-Memory DB v2 API</strong></mark></td><td>Learn how to create, manage, and delete In-Memory DB clusters using the In-Memory DB v2 Cloud API.</td><td><a href="https://api.ionos.com/docs/in-memory-db/v2/">https://api.ionos.com/docs/in-memory-db/v2/</a></td></tr><tr><td><mark style="color:blue;"><strong>In-Memory DB v1 API</strong></mark></td><td>Learn how to create, manage, and delete In-Memory DB replica sets using the In-Memory DB v1 Cloud API.</td><td><a href="/pages/UAfJKxye0gOmpZElNT35">/pages/UAfJKxye0gOmpZElNT35</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/databases/in-memory-db/api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
