Applications and databases
Check status and metrics, start, stop and restart resources from your code.
Official SDKs
Bring Vertra into the scripts and tools you already write. Official clients for JavaScript, TypeScript, Python and Go, with typed methods and access to the platform API.
const app = await client.apps.get("app-id");
await client.apps.restart(app.id);app = client.apps.get("app-id")
client.apps.restart(app["id"])app, _ := client.Apps.Get(ctx, "app-id")
_, _ = client.Apps.Restart(ctx, app.ID, nil)Install the package, connect your API key and make your first call. These examples use an environment variable to keep the key out of your code.
Async methods and types for autocomplete as you develop in JavaScript and TypeScript.
import { VertraClient } from "@vertracloud/sdk-api";
const client = new VertraClient({
apiKey: process.env.VERTRA_API_KEY!,
});
const app = await client.apps.get("app-id");
console.log(app.name);A synchronous, typed client for your Python scripts, bots and tools.
import os
from vertracloud import VertraClient
client = VertraClient(
api_key=os.environ["VERTRA_API_KEY"]
)
app = client.apps.get("app-id")
print(app["name"])An idiomatic client with context.Context for Go services, CLIs and automation.
package main
import (
"context"
"fmt"
"log"
"os"
"github.com/vertracloud/sdk-api-go/rest"
"github.com/vertracloud/sdk-api-go/vertracloud"
)
func main() {
restClient, err := rest.NewClient(os.Getenv("VERTRA_API_KEY"))
if err != nil {
log.Fatal(err)
}
client := vertracloud.New(restClient)
app, err := client.Apps.Get(context.Background(), "app-id")
if err != nil {
log.Fatal(err)
}
fmt.Println(app.Name)
}Use public API resources through methods you can discover in your editor.
Check status and metrics, start, stop and restart resources from your code.
Read and update files, configure environment variables, and create or restore snapshots.
Identify authentication, permissions and request limits with dedicated error classes.
Connect projects, members and roles to your processes. Every call respects your key’s scopes.
Use npm, pip or go get in your project environment, depending on the language.
Create an API key in the dashboard with the permissions you need, then set VERTRA_API_KEY in your script environment.
Provide the application ID and retrieve its data. Then combine the calls your automation needs.
Use the SDK in a server environment. An API key in a browser is exposed to visitors; keep authenticated calls in your backend.
They cover public API resources allowed by your key’s scopes. Key management, invitations and browsing database contents remain in the dashboard.
Use apps methods to retrieve status, metrics and logs. The realtime method also lets you consume live events.
Yes. Calls follow your account’s API permissions and limits. Handle rate limit errors in your integration.
Official SDKs
Choose your language and make Vertra part of your project’s workflow.