Create Application Snapshot
curl --request POST \
--url https://api.vertracloud.app/v1/users/{id}/snapshotsimport requests
url = "https://api.vertracloud.app/v1/users/{id}/snapshots"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.vertracloud.app/v1/users/{id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/users/{id}/snapshots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/users/{id}/snapshots"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vertracloud.app/v1/users/{id}/snapshots")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/{id}/snapshots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"resource_id": "550e8400-e29b-41d4-a716-446655440001",
"type": 1,
"size": 1260,
"resource_name": "my-bot",
"created_at": "2026-09-16T15:00:00.000Z",
"expires_at": "2026-10-16T15:00:00.000Z"
}
}
Snapshots
Create Application Snapshot
Takes a snapshot of an application or database volume right now. The snapshot appears in the list and can be restored or downloaded like any other.
POST
/
v1
/
users
/
{id}
/
snapshots
Create Application Snapshot
curl --request POST \
--url https://api.vertracloud.app/v1/users/{id}/snapshotsimport requests
url = "https://api.vertracloud.app/v1/users/{id}/snapshots"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.vertracloud.app/v1/users/{id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/users/{id}/snapshots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/users/{id}/snapshots"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vertracloud.app/v1/users/{id}/snapshots")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/{id}/snapshots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"resource_id": "550e8400-e29b-41d4-a716-446655440001",
"type": 1,
"size": 1260,
"resource_name": "my-bot",
"created_at": "2026-09-16T15:00:00.000Z",
"expires_at": "2026-10-16T15:00:00.000Z"
}
}
string
required
The ID of the application or database to snapshot.
string
required
The resource type. Possible values:
applications, databases.Two limits apply to manual snapshots, on top of the route’s 5 requests per minute. The same
resource can be snapshotted once every 5 minutes, and an account can create at most 10
snapshots per hour across all its resources. Over either limit the API answers
429 SNAPSHOT_RATE_LIMITED with details.scope (resource or account) and
details.retry_after in seconds. Snapshots the platform takes on its own (before a delete or a
reset) do not count. See Rate Limiting.Response
object
The snapshot that was created.
Show Toggle object
Show Toggle object
string
The ID of the resource this snapshot belongs to.
number
1 for an application, 2 for a database.number
Size in kilobytes.
string | null
The name the resource had at the moment the snapshot was taken.
string
When the snapshot was taken.
string
When the snapshot will be deleted automatically.
{
"response": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"resource_id": "550e8400-e29b-41d4-a716-446655440001",
"type": 1,
"size": 1260,
"resource_name": "my-bot",
"created_at": "2026-09-16T15:00:00.000Z",
"expires_at": "2026-10-16T15:00:00.000Z"
}
}
Error Responses
string
The error code indicating the reason for failure. Possible values:
UNAUTHORIZED: The user is not authenticated.USER_NOT_FOUND: The authenticated user was not found.APP_NOT_FOUND: The specified application does not exist.DATABASE_NOT_FOUND: The specified database does not exist.ACCESS_DENIED: The user does not own the resource.PLAN_NOT_ALLOWED: The account’s plan does not include manual snapshots (403).DATABASE_NOT_RUNNING: The database must be running to take a snapshot (409). Redis has no such requirement.SNAPSHOT_RATE_LIMITED: The resource was snapshotted less than 5 minutes ago, or the account already created 10 snapshots this hour (429). Comes withdetails.scopeanddetails.retry_after.OPERATION_IN_PROGRESS: Another lifecycle operation on the same resource is already running (409). Nothing was snapshotted — wait a few seconds and retry.INTERNAL_SERVER_ERROR: The snapshot could not be stored. Retry later.UNKNOWN_ERROR: An unexpected platform error occurred.INTERNAL_SERVER_ERROR: An unexpected server error occurred.
{
"code": "UNAUTHORIZED"
}
{
"code": "PLAN_NOT_ALLOWED"
}
{
"code": "SNAPSHOT_RATE_LIMITED",
"details": {
"scope": "resource",
"retry_after": 212
}
}
{
"code": "OPERATION_IN_PROGRESS"
}
{
"code": "DATABASE_NOT_RUNNING"
}