Listar stacks
curl --request GET \
--url https://api.vertracloud.app/v1/stacks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/stacks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/stacks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/stacks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"response": [
{
"id": "stk-abc123def456",
"name": "shop",
"description": null,
"network_mode": "public",
"owner_id": "usr-abc123",
"workspace_id": null,
"members": [],
"status": { "up": 2, "down": 0, "building": 0, "total": 2 },
"ram_total": 768,
"bindings": [],
"template": null,
"update_available": false,
"created_at": "2026-10-27T12:00:00.000Z",
"updated_at": "2026-10-27T12:00:00.000Z"
}
]
}
Stacks
Listar stacks
Lista as stacks da sua conta ou de um workspace, com os membros, o status e as conexões.
GET
/
v1
/
stacks
Listar stacks
curl --request GET \
--url https://api.vertracloud.app/v1/stacks \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/stacks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/stacks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/stacks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"response": [
{
"id": "stk-abc123def456",
"name": "shop",
"description": null,
"network_mode": "public",
"owner_id": "usr-abc123",
"workspace_id": null,
"members": [],
"status": { "up": 2, "down": 0, "building": 0, "total": 2 },
"ram_total": 768,
"bindings": [],
"template": null,
"update_available": false,
"created_at": "2026-10-27T12:00:00.000Z",
"updated_at": "2026-10-27T12:00:00.000Z"
}
]
}
Retorna todas as stacks que você possui, ou as stacks de um workspace quando você envia
workspace_id. Uma stack agrupa apps, bancos de dados e pastas do Blob e as conexões entre eles. Veja Stacks para o conceito.
Precisa do escopo stacks:read quando chamado com uma chave de API.
string
Lista as stacks deste workspace em vez das suas. Membros do workspace podem ler stacks; só o dono pode alterá-las.
Resposta
object[]
Um array de stacks. Cada item tem o mesmo formato do objeto retornado por Obter stack.
{
"response": [
{
"id": "stk-abc123def456",
"name": "shop",
"description": null,
"network_mode": "public",
"owner_id": "usr-abc123",
"workspace_id": null,
"members": [],
"status": { "up": 2, "down": 0, "building": 0, "total": 2 },
"ram_total": 768,
"bindings": [],
"template": null,
"update_available": false,
"created_at": "2026-10-27T12:00:00.000Z",
"updated_at": "2026-10-27T12:00:00.000Z"
}
]
}
Erros
| Status | Código | Quando |
|---|---|---|
| 403 | API_KEY_SCOPE_DENIED | A chave não tem stacks:read. |
| 404 | WORKSPACE_NOT_FOUND | O workspace não existe ou você não é membro. |
Última modificação em 28 de outubro de 2026