Váš Hosting has three APIs. The Customer portal API manages your account: domains, DNS records, web hosting services, servers, and invoices. Each VPS also has its own VPS Centrum API: the VPS Centrum V3 API or the VPS Centrum V2 API, depending on which version of VPS Centrum the server runs. It covers what you manage in VPS Centrum on that server, such as domains, databases, email accounts, and files. For each API, this reference describes the base URL, authentication, request and response formats, errors, and endpoint groups. For the parameters of individual endpoints, see each API’s official documentation.

In the menu of the English interface, VPS Centrum appears as **VPS Centre**. Some labels on the API keys page in the Customer portal may appear in Czech even in the English interface. This reference shows them in bold as they appear on screen, followed by a translation in parentheses, for example, **Přegenerovat** (Regenerate).

## Quick reference

*For experienced users who only need the key steps and settings. If you’re doing this for the first time, start with the next section.*

**Customer portal API**

- **Base URL:** https://portal.vas-hosting.cz/api/v1
- **Authentication:** X-API-Key: YOUR\_API\_KEY header
- **API keys:** **Account and contacts &gt; API keys &gt; Overview of API keys** in the Customer portal. A key is 32 characters long, has the same permissions as your account, and is shown only once. **Přegenerovat** (Regenerate) replaces a key with a new one, and the previous key stops working immediately.
- **Responses:** JSON. Successful requests return 200 with a body or 204 without one. Errors use 4xx codes and a JSON body with a message key.
- **Server actions:** start, stop, and reboot return 429 if you send them too soon after the previous action. increase-parameters can only increase CPU, RAM, or disk, and it shortens the prepaid period instead of issuing an additional invoice.
- **Documentation:** [Váš Hosting API documentation](https://www.vas-hosting.com/api-docs/vh)

**VPS Centrum V3 API**

- **Base URL:** https://HOSTNAME.vas-server.cz/vpsc/api/v1. Each server has its own API.
- **Authentication:** X-API-Key: YOUR\_API\_KEY header
- **API keys:** **VPS Centre &gt; API Keys**. A key is 32 characters long, is shown only once, and has full access to VPS Centrum on that server. An expiration date and allowed IP addresses are optional.
- **Connection test:** GET /status/check returns {"status":"ok","version":"VERSION"}, where VERSION is the installed version of VPS Centrum.
- **Background operations:** return 202 or 204 with the X-Process-Id header. Poll GET /processes/{id} until status is finished.
- **Documentation:** [VPS Centrum V3 API documentation](https://www.vas-hosting.com/api-docs/vpsc)

**VPS Centrum V2 API**

- **Endpoint:** POST https://HOSTNAME.vas-server.cz/admin/api/v1/api.php with the command in the command field, for example, {"command":"domain-list"}
- **Authentication:** x-vpsc-admin (an address from **Administrator Email**) and x-vpsc-apikey headers
- **API key:** **Server administration &gt; VPS Center &gt; Settings &gt; API key**. **Generate** and **Cancel** only change the field. The change takes effect when you click **Save**, and the previous key stops working.
- **Responses:** 200 on success, 403 for authentication errors, 404 or 500 for other errors. The body is a JSON value, such as a string, an object, or an array.
- **Documentation:** [VPS Centrum V2 API documentation](https://www.vas-hosting.com/api-docs/vpsc-v2)

## Before you begin

Each Váš Hosting API covers different services and accepts only its own API keys. A key created in the Customer portal doesn’t work with the VPS Centrum APIs, and a VPS Centrum key doesn’t work with the Customer portal API or with another server’s API. All three APIs use HTTPS and return JSON.

### Choose the right API

The API you need depends on what you want to manage:

AttributeCustomer portal APIVPS Centrum V3 APIVPS Centrum V2 API**Manages**Your account: domains and their DNS records; databases, email accounts, and FTP accounts on web hosting; servers; unpaid invoicesA single VPS running VPS Centrum V3: domains, subdomains, DNS records, databases, email, FTP, cron jobs, files, Docker apps, Git, logs, and the WAFA single VPS running VPS Centrum V2: domains, DNS records, email, MySQL databases, FTP, and cron jobs**Base URL**https://portal.vas-hosting.cz/api/v1https://HOSTNAME.vas-server.cz/vpsc/api/v1https://HOSTNAME.vas-server.cz/admin/api/v1/api.php**Authentication**X-API-Key headerX-API-Key headerx-vpsc-admin and x-vpsc-apikey headers**Where keys are created**Customer portalVPS Centrum on the serverVPS Centrum on the server**Server actions**Starting, stopping, and rebooting servers, and increasing CPU, RAM, or diskChecking status, disk usage, and processes, and restarting or reloading servicesNone### What you need

- **Access to the Customer portal** *(if applicable)*: for the Customer portal API. A key has the same permissions as the account that created it.
- **A VPS with VPS Centrum** *(if applicable)*: for the VPS Centrum V3 API or the VPS Centrum V2 API. Each server has its own API and its own keys.
- **The Root rights permission in VPS Centrum V3** *(if applicable)*: only users with this permission can open **VPS Centre &gt; API Keys**.
- **An API key** *(required)*: the section for each API explains where to create one.
- **An HTTP client** *(required)*: for example, curl or an HTTP library for your programming language. The examples in this reference use curl.
- **The public IP address your requests come from** *(optional)*: only if you want to restrict a VPS Centrum key to specific addresses.

> **Skip ahead**
> 
> Go straight to the API you use:
> 
> [Customer portal API](#h-customer-portal-api)
> 
> [VPS Centrum V3 API](#h-vps-centrum-v3-api)
> 
> [VPS Centrum V2 API](#h-vps-centrum-v2-api)

## Customer portal API

The Customer portal API manages your Váš Hosting account. Its documentation calls it the Váš Hosting API. All paths in this section are relative to the base URL https://portal.vas-hosting.cz/api/v1.

### Authentication and API keys in the Customer portal API

Every request to the Customer portal API must include an API key in the X-API-Key header. A request without a valid key returns 401, even from a browser where you’re signed in to the Customer portal.

Customer portal API keys have these properties:

- **Permissions:** the same as the account that created the key. The API documentation describes the scope of a key as unlimited.
- **Visibility:** the key is shown only once, right after you create it, in the **Your API key is** message. The portal stores it encrypted and can’t display it again.
- **Expiry:** optional. **Without expiry** is selected by default.
- **IP restrictions:** not available for Customer portal keys.

To create a key in the Customer portal:

1. Open **Account and contacts &gt; API keys &gt; Overview of API keys** and click **New API key**.
2. Fill in the **Note** field (up to 64 characters). To set an expiration date, clear **Without expiry** and choose a date in **Expiry**.
3. Click **Create** and copy the key from the **Your API key is** message.

![New API key window in the Customer portal with the Note field, the Without expiry option, and the Create button](https://cms.vas-hosting.cz/wp-content/uploads/2026/12/api-reference-en-01-portal-new-api-key.png)The list of keys shows each key’s note and expiration date. The three-dot menu in each row offers two actions:

- **Přegenerovat** (Regenerate): after you confirm with **Ano, přegenerovat** (Yes, regenerate), the portal shows a new key in the **Your API key is** message, and the previous key stops working immediately. The note and the expiration date stay the same, and the **Přegenerováno** (Regenerated) column shows the date.
- **Delete**: after you confirm with **Yes, delete**, the key stops working immediately.

### Requests and responses in the Customer portal API

The Customer portal API uses JSON. POST requests send their parameters as a JSON body, and GET and DELETE requests have no body. Some paths contain a variable, such as {domainName} (for example, domena.cz) or {hostName} (the server name returned by GET /servers).

This request lists the servers in your account:

```
curl -H "X-API-Key: YOUR_API_KEY" https://portal.vas-hosting.cz/api/v1/servers
```

The response is a JSON object keyed by server name. For each server, it contains the status, plan (tariff), operating system, RAM, storage, IP addresses, labels, and expiration date.

The Customer portal API uses these status codes:

CodeMeaning in the Customer portal API200Success, with a JSON body204Success, without a body304No change, for example, when the label is already assigned to the server400Invalid input, for example, a domain name in the wrong format401Missing or invalid API key, or an action that isn’t allowed, for example, paying an invoice without enough credit or rebooting a server that only support can reboot403The requested service, such as email accounts, isn’t part of the domain’s plan404The domain, server, or other object doesn’t exist409The action conflicts with the current state, for example, stopping a server whose state doesn’t allow it422The request body failed validation429A server action was requested too soon after the previous one, or the server parameters were changed too recently500Server errorError responses have a JSON body with a message key. Authentication errors also contain status and code:

```
{"status":"error","message":"Invalid API key provided.","code":401}
```

Validation errors (422) list the invalid fields in context.validation.

Sizes for domains and their services (databases, email, and FTP) are in megabytes (MB), where 1 GB = 1,000 MB. For servers, disk space is in gigabytes (GB) and RAM in gibibytes (GiB).

### Endpoint groups in the Customer portal API

The Customer portal API has these endpoint groups:

GroupWhat it coversPathsAccountUnpaid pro forma invoices and paying them with account credit/account/unpaid-invoicesDomainsListing domains and their details, adding a domain with default DNS records, registering or transferring a domain, and changing the PHP version/domains, /domains/{domainName}DatabasesListing, creating, backing up, and deleting databases, and changing passwords/domains/{domainName}/databasesDNS recordsListing, creating, editing, and deleting records, and checking a domain’s DNS status/domains/{domainName}/dns-records, /domains/{domainName}/dns-statusEmail accountsAccounts, passwords, quotas, aliases, auto-replies, and forwarding/domains/{domainName}/email-accountsFTP accountsAccounts, passwords, quotas, and locking or unlocking accounts/domains/{domainName}/ftp-accountsServersListing servers and their details; starting, stopping, and rebooting servers; increasing parameters; installing a VPS on a VDS/servers, /servers/{hostName}Labels, operating systems, and IP addressesServer labels, supported operating systems, and the IP addresses in your account/servers/labels, /servers/operating-systems, /servers/ip-addressesSome endpoints affect billing. Registering or transferring a domain creates an order, pay-with-credit pays an invoice from your account credit, and increase-parameters shortens the server’s prepaid period.

The [Váš Hosting API documentation](https://www.vas-hosting.com/api-docs/vh) lists every endpoint with its parameters and examples.

## VPS Centrum V3 API

The VPS Centrum V3 API manages a single VPS running VPS Centrum V3. Each server has its own API. All paths in this section are relative to the base URL https://HOSTNAME.vas-server.cz/vpsc/api/v1, where HOSTNAME is your server’s name.

### Authentication and API keys in the VPS Centrum V3 API

Every request to the VPS Centrum V3 API must include an API key in the X-API-Key header. A request without a valid key returns 401.

VPS Centrum V3 API keys have these properties:

- **Format:** 32 letters and digits.
- **Visibility:** the key is shown only once, right after you create it, in the **Your API key is** message. VPS Centrum can’t display it again.
- **Permissions:** full access to VPS Centrum on that server. Only users with the **Root rights** permission can create or delete keys.
- **Expiry:** optional. **Without expiry** is selected by default. When you clear it, **Expiry** defaults to one year from today, and you can change the date.
- **Allowed IP addresses:** optional, one IPv4 or IPv6 address per line in **Allowed IP addresses for API Key**. If the field is blank, the key works from any address.
- **Changes after creation:** you can edit only the allowed IP addresses. The note and the expiration date can’t be changed.
- **Deletion:** a deleted key stops working immediately.

To create a key in VPS Centrum V3:

1. Open **VPS Centre &gt; API Keys** and click **Create API key**.
2. Fill in the **Note** field (up to 64 characters). Optionally, clear **Without expiry** and set a date in **Expiry**. To restrict the key to specific addresses, enter them in **Allowed IP addresses for API Key**.
3. Click **Create API key** and copy the key from the **Your API key is** message.

![Create API key window in VPS Centrum V3 with the Note field, the Without expiry option, and the Allowed IP addresses for API Key field](https://cms.vas-hosting.cz/wp-content/uploads/2026/12/api-reference-en-02-vpsc3-create-api-key.png)To change a key’s allowed IP addresses or delete the key, open the three-dot menu in its row and choose **Edit by** or **Delete**. To confirm the deletion, click **Yes delete**.

The list in **VPS Centre &gt; API Keys** can also contain keys that you didn’t create yourself. For example, each Git repository in VPS Centrum has a key named **Api key for git repository: REPOSITORY**. VPS Centrum uses this key for auto-deploy, and the key can only start a Git deployment. If you delete one of these keys, the service that uses it stops working.

### Requests and responses in the VPS Centrum V3 API

The VPS Centrum V3 API uses JSON. POST, PUT, and PATCH requests send their parameters as a JSON body, and file uploads use multipart/form-data. Paths for domain-specific endpoints include the domain name, for example, /domains/domena.cz/databases.

This request checks the connection and the API key:

```
curl -H "X-API-Key: YOUR_API_KEY" https://HOSTNAME.vas-server.cz/vpsc/api/v1/status/check
```

The response contains the version of VPS Centrum installed on the server:

```
{"status":"ok","version":"VERSION"}
```

This request creates a MySQL database for the domain **domena.cz**:

```
curl -X POST https://HOSTNAME.vas-server.cz/vpsc/api/v1/domains/domena.cz/databases \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"shop","type":"mysql","password":"DB_PASSWORD"}'
```

name: the database name, 2 to 20 lowercase letters, digits, or underscores

type: mysql or postgresql

password: the database user’s password, 8 to 64 characters

Once the database is created, the API returns 204 with an empty body.

The VPS Centrum V3 API uses these status codes:

CodeMeaning in the VPS Centrum V3 API200Success, with a JSON body201Created, for example, a file or a directory202Accepted, and the operation runs in the background204Success, without a body400Invalid request401Missing or invalid API key403The key can only start a Git deployment404The domain or another object doesn’t exist, or the path doesn’t match any endpoint409Conflict with the current state, for example, a database with the same name already exists or is still in the trash413The uploaded file is too large422The request body failed validation500Server errorErrors have one of these JSON bodies. Authentication errors (401 and 403):

```
{"status":"error","message":"Invalid API key provided.","code":401}
```

Most other errors:

```
{"message":"Domain \"example.com\" not found."}
```

Validation errors (422) list the problems by field in context.validation:

```
{"exception":"Request body contains an error. See context for details.","context":{"validation":{"password":["This value is too short. It should have 8 characters or more."]}}}
```

A path that doesn’t match any endpoint returns 404 with {"exception":"No matched route by given URL"}. Sizes, such as storageQuota and storageUsed in GET /domains, are in bytes.

### Background processes in the VPS Centrum V3 API

Some VPS Centrum V3 API operations run in the background: creating, redeploying, and deleting Docker apps; changing their environment variables; installing Docker; uploading and extracting a ZIP archive; creating and deleting Git repositories; running Git deployments; installing web software; issuing and removing SSL certificates; deleting a domain; and migrating from another server. These operations return 202 or 204, with the process ID in the X-Process-Id header. Some of them also return the ID as processId in the body.

GET /processes/{id} returns the state of the process:

FieldMeaningstatusqueued, running, or finishedsuccesstrue or false once the process has finishedstartedAt, finishedAtStart and end time in ISO 8601durationSecondsHow long the process has been running, or how long it ranoutput, errorOutputProcess output (the last 64 KiB at most), returned only with ?withOutput=trueCreating a database isn’t a background operation. The API returns 204 after the database is created.

### Endpoint groups in the VPS Centrum V3 API

The VPS Centrum V3 API documentation groups the endpoints into five areas:

AreaWhat it coversPathsDomain managementDomains (including the PHP version, DNS activation, and SSL certificates), subdomains, DNS records, databases, email accounts, FTP accounts, cron jobs, and files/domains and /domains/{domainName}, including the paths under itDeploymentDocker apps, installing Docker, Git repositories and deployments, installing web software, and migrations from another server/domains/{domainName}/applications, /server/docker/install, /domains/{domainName}/git, /git/deploy, /software/install, /transfersMonitoringConnection check, server status, disk usage, running processes, systemd services, logs, web analytics, and background processes/status/check, /server, /logs, /domains/{domainName}/analytics, /processes/{id}SecurityWAF status and configuration, bans, the whitelist, the bot blacklist, reports, recent requests, and the traffic timeline/wafConfigurationReading the configuration files of server services/config/{type}The [VPS Centrum V3 API documentation](https://www.vas-hosting.com/api-docs/vpsc) lists every endpoint with its parameters. You can switch the documentation to the version that GET /status/check returns for your server.

## VPS Centrum V2 API

The VPS Centrum V2 API manages a single VPS running VPS Centrum V2. Unlike the Customer portal API and the VPS Centrum V3 API, which are REST APIs, it’s command-based: every request goes to the same address, https://HOSTNAME.vas-server.cz/admin/api/v1/api.php, and the command in the request body decides what happens. Scripts written for the VPS Centrum V2 API don’t work with the V3 API, so after a migration to VPS Centrum V3, they need to be rewritten.

### Authentication and API keys in the VPS Centrum V2 API

Every request to the VPS Centrum V2 API must include two headers:

- x-vpsc-admin: an email address from the **Administrator Email** field in **Server administration &gt; VPS Center &gt; Settings**. If the field contains several addresses separated by commas, any of them works.
- x-vpsc-apikey: the API key from the **API key** field on the same page.

The VPS Centrum V2 API key has these properties:

- **Number of keys:** one key per server.
- **Visibility:** the key stays visible in the **API key** field.
- **Allowed IP addresses:** optional, separated by semicolons in **Allowed IP addresses for the API**. If the field is empty, the API accepts requests from any address.
- **Changes:** **Generate** fills in a new 32-character key, and **Cancel** clears the field. Neither takes effect until you click **Save**. If you save an empty field, the API stops accepting requests.

**Warning:** Saving a new key replaces the current one. Scripts and apps that use the previous key stop working.



 

To create or replace the key in VPS Centrum V2:

1. Open **Server administration** and then the **VPS Center** tab.
2. In **Settings**, click **Generate** next to **API key**. Optionally, enter the allowed addresses in **Allowed IP addresses for the API**.
3. Click **Save**.

![API key settings on the VPS Center tab of Server administration in VPS Centrum V2](https://cms.vas-hosting.cz/wp-content/uploads/2026/12/api-reference-en-03-vpsc2-api-key.png)### Requests and responses in the VPS Centrum V2 API

Requests to the VPS Centrum V2 API use POST and send the command and its parameters as a JSON body or as form fields (application/x-www-form-urlencoded). The API documentation also shows the command in the URL, for example, api.php?domain-list. The API reads only the command field, so you can omit the part after the question mark.

This request lists the domains on the server:

```
curl -X POST https://HOSTNAME.vas-server.cz/admin/api/v1/api.php \
  -H "x-vpsc-admin: admin@domena.cz" \
  -H "x-vpsc-apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"command":"domain-list"}'
```

```
[{"id":"1","domena":"domena.cz","domena_expirace":"2027-06-30"}]
```

Responses don’t share a common structure. Depending on the command, the body is a string, a number, an object, or an array. Some fields have Czech names, such as domena (domain) and domena\_expirace (domain expiration date).

The VPS Centrum V2 API doesn’t return process IDs, and most commands finish before the API responds. The SSL commands only start the work: domain-set-ssl and domain-set-ssl-wildcard return "OK - SSL will be issued", domain-unset-ssl returns "OK - SSL will be removed", and the certificate is issued or removed after the response. While a wildcard certificate is being issued, another domain-set-ssl-wildcard request returns 500 with "Error - A wildcard certificate is being generated for the DOMAIN domain. Please wait for the process to complete."

The VPS Centrum V2 API uses these status codes:

CodeMeaning in the VPS Centrum V2 API200Success403Authentication failed, or the request came from an IP address that isn’t allowed404The domain or another object wasn’t found, or the command was rejected500A required parameter is missing, for example, "Parameter 'domain' not found.", or another error occurredError bodies are JSON strings, for example, "Bad credentials". A command that the API doesn’t recognize returns 200 with an empty body.

### Command groups in the VPS Centrum V2 API

The VPS Centrum V2 API has these commands, grouped by area:

GroupCommandsDomainsdomain-list, domain-add, domain-add-alias, domain-delete, domain-size, domain-change-php-version, domain-set-php-version, domain-set-ssl, domain-set-ssl-wildcard, domain-unset-ssl, domain-availability, domain-registerEmailemail-list, email-add, email-get-details, email-password, email-set-quota, email-delete, email-add-alias, email-delete-alias, email-set-copy, email-set-forwarding, email-set-autoreply, email-plannig-autoreply, email-set-sieve-rules, email-activate-dkim, email-get-dkimMySQL databasesmysql-list, mysql-addFTPftp-list, ftp-addDNSdns-list-records, dns-add-record, dns-delete-record, dns-set-ttl, dns-activate-domain, dns-is-activeCroncron-list, cron-add-url, cron-add-php, cron-activate, cron-stop, cron-deleteCustomer accountpayment-listThe command name email-plannig-autoreply isn’t a typo in this reference; the API uses this exact spelling. Git auto-deploy uses a separate address, https://HOSTNAME.vas-server.cz/admin/api/v1/git.php, with its own credentials in the user and pass query parameters instead of the API key. It answers "Autodeploy: branch BRANCH has deploy enabled. Deploying...", and the deployment continues after the response.

The [VPS Centrum V2 API documentation](https://www.vas-hosting.com/api-docs/vpsc-v2) describes the parameters of each command.

## Troubleshooting

### API request fails with 401 No API key provided

**Symptom:** The Customer portal API or the VPS Centrum V3 API returns 401 with No API key provided in X-API-Key header. or No API key provided in Bearer header.

**Cause:** The request has no X-API-Key header, or it sends the key in a header with a different name. The VPS Centrum V3 API mentions a Bearer header in this message, but it reads the key only from X-API-Key.

**Solution:** Send the key in the X-API-Key header, for example, -H "X-API-Key: YOUR\_API\_KEY" in curl.

### API request fails with 401 Invalid API key provided

**Symptom:** The Customer portal API or the VPS Centrum V3 API returns 401 with Invalid API key provided.

**Cause:** The key doesn’t match any valid key for that API. This happens when the key is mistyped, belongs to a different API or server, has been deleted, or has expired. In the VPS Centrum V3 API, the same message also appears when the request comes from an IP address that isn’t one of the key’s allowed IP addresses.

**Solution:** Check that the key belongs to the API and server you’re calling. In VPS Centrum V3, check the key’s expiration date and allowed IP addresses in **VPS Centre &gt; API Keys**. If the key has expired or you no longer have it, create a new one.

### VPS Centrum V2 API request fails with 403

**Symptom:** The VPS Centrum V2 API returns 403 with "Empty API Key", "Empty Username", "Bad credentials", or null.

**Cause:** Each message points to a different cause:

- "Empty API Key": the x-vpsc-apikey header is missing or empty.
- "Empty Username": the x-vpsc-admin header is missing or empty.
- "Bad credentials": the key doesn’t match the **API key** field, or the address in x-vpsc-admin isn’t in **Administrator Email**.
- null: the request came from an IP address that isn’t in **Allowed IP addresses for the API**.

**Solution:** Compare both headers with the **API key** and **Administrator Email** fields in **Server administration &gt; VPS Center &gt; Settings**. For null, add the IP address your requests come from to **Allowed IP addresses for the API** or clear the field, and then click **Save**.

### VPS Centrum V3 API returns a 404 HTML page

**Symptom:** A request to the VPS Centrum V3 API returns 404 with an HTML page instead of JSON.

**Cause:** The URL is missing /vpsc, for example, https://HOSTNAME.vas-server.cz/api/v1/status/check. The VPS Centrum V3 API documentation may show the base URL without /vpsc.

**Solution:** Add /vpsc before /api/v1, for example, https://HOSTNAME.vas-server.cz/vpsc/api/v1/status/check.

### VPS Centrum V3 API returns 404 Domain not found

**Symptom:** The VPS Centrum V3 API returns 404 with a message such as Domain "example.com" not found.

**Cause:** The domain in the path isn’t on this server. Each server’s API works only with the domains in its own VPS Centrum.

**Solution:** Send the request to the server that hosts the domain. GET /domains lists the domains on a server.

### API request fails with 422 Request body contains an error

**Symptom:** The Customer portal API or the VPS Centrum V3 API returns 422 with Request body contains an error. See context for details.

**Cause:** One or more fields in the request body are missing or invalid. The context.validation object lists the problems by field name.

**Solution:** Fix each field listed in context.validation and send the request again. For example, a database name must be 2 to 20 characters long and contain only lowercase letters, digits, and underscores, and a database password needs at least 8 characters.

### Customer portal API returns 429 for a server action

**Symptom:** POST /servers/{hostName}/start, stop, reboot, or increase-parameters returns 429.

**Cause:** The action was requested too soon after the previous action on the same server, or the server parameters were changed too recently.

**Solution:** Wait and send the request again. GET /servers/{hostName} shows the current status of the server.

### The API key is no longer visible

**Symptom:** You need an existing API key, but the Customer portal or VPS Centrum V3 shows only its note.

**Cause:** The Customer portal and VPS Centrum V3 show a key only once, when it’s created, and can’t display it again.

**Solution:** Create a new key, use it in your scripts and apps, and then delete the old key. In the Customer portal, **Přegenerovat** (Regenerate) replaces the key in one step, and the previous key stops working immediately.

### The change is not visible after a 202 response

**Symptom:** The VPS Centrum V3 API returns 202, but the change isn’t visible yet.

**Cause:** 202 means that the operation was accepted and is running in the background.

**Solution:** Get the process ID from the X-Process-Id header, call GET /processes/{id} until status is finished, and then check success. For a failed process, add ?withOutput=true to see its output. For details, see [Background processes in the VPS Centrum V3 API](#h-background-processes-in-the-vps-centrum-v3-api).

Still having trouble? [Contact our support team](https://www.vas-hosting.com/contact).

Want to manage Docker apps, Git deployments, and the WAF through the API? These endpoints are available only in VPS Centrum V3. If your server still runs VPS Centrum V2, you can use the Customer portal to migrate to a server with VPS Centrum V3, or compare plans on the [Virtual servers](https://www.vas-hosting.com/virtual-servers) page.