> 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/postgresql/api.md).

# API

The <code class="expression">space.vars.ionos\_cloud</code> Database as a Service (DBaaS) PostgreSQL API lets you provision and manage highly available PostgreSQL clusters, configure backups, and handle access and privileges.

## PostgreSQL API versions

DBaaS PostgreSQL offers two versions of the PostgreSQL API. **Version 2 (2.0.0)** is the modern, future-proof, and developer-friendly standard, while **Version 1 (1.0.0)** is the legacy implementation.

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

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

* Effective **September 15, 2026**, **PostgreSQL v1** functionality will be fully deactivated in both the [<mark style="color:blue;">DCD</mark>](/cloud/databases/postgresql/how-tos/v1.md) and [<mark style="color:blue;">API</mark>](/cloud/databases/postgresql/api/v1-api.md). Use **PostgreSQL v2** to create and manage clusters using the [<mark style="color:blue;">DCD</mark>](/cloud/databases/postgresql/how-tos/v2.md) or the [<mark style="color:blue;">API</mark>](https://api.ionos.com/docs/postgresql/v2/).
* Cluster creation using **PostgreSQL v1** API is deprecated since **July 15, 2026**. In the DCD, only limited operations are supported on legacy (existing v1) clusters.
* Existing PostgreSQL v1 clusters will be automatically migrated to the new PostgreSQL v2 infrastructure starting **July 29, 2026**. No user action is required and we will notify you before the migration. If you prefer to migrate earlier, see [<mark style="color:blue;">Manual migration</mark>](/cloud/databases/postgresql/how-tos/migrate-from-v1-v2.md#manual-migration).
  {% endhint %}

## What can you do with the PostgreSQL APIs?

The PostgreSQL API lets you manage PostgreSQL database clusters programmatically using standard `HTTPS` requests.

You can also use the PostgreSQL API to:

* Modify cluster attributes.
* Manage user access and databases.
* Restore database clusters from backups.
* Query supported PostgreSQL versions.
* Access cluster logs.

## 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>PostgreSQL v2 API</strong></mark></td><td>Learn how to create, manage, and delete PostgreSQL clusters using the PostgreSQL v2 Cloud API.</td><td><a href="https://api.ionos.com/docs/postgresql/v2/">https://api.ionos.com/docs/postgresql/v2/</a></td></tr><tr><td><mark style="color:blue;"><strong>PostgreSQL v1 API</strong></mark></td><td>Learn how to manage MongoDB replica set clusters, users, and backups with the PostgreSQL v1 REST API.</td><td><a href="https://api.ionos.com/docs/postgresql/v1/">https://api.ionos.com/docs/postgresql/v1/</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/postgresql/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.
