List Action Requests
curl --request GET \
--url https://api.vertracloud.app/v1/workspaces/{id}/action-requestsimport requests
url = "https://api.vertracloud.app/v1/workspaces/{id}/action-requests"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/workspaces/{id}/action-requests', 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/workspaces/{id}/action-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/workspaces/{id}/action-requests"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/workspaces/{id}/action-requests")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/workspaces/{id}/action-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": [
{
"id": "<string>",
"workspace_id": "<string>",
"action": {},
"resource_type": {},
"resource_id": "<string>",
"resource_name": {},
"params": {},
"status": {},
"requested_by": {},
"decided_by": {},
"decided_at": {},
"expires_at": "<string>",
"created_at": "<string>"
}
]
}Action Requests
List Action Requests
Lists pending/decided action requests. Requires members:manage; an API key needs the workspaces:read scope.
GET
/
v1
/
workspaces
/
{id}
/
action-requests
List Action Requests
curl --request GET \
--url https://api.vertracloud.app/v1/workspaces/{id}/action-requestsimport requests
url = "https://api.vertracloud.app/v1/workspaces/{id}/action-requests"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/workspaces/{id}/action-requests', 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/workspaces/{id}/action-requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/workspaces/{id}/action-requests"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/workspaces/{id}/action-requests")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/workspaces/{id}/action-requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": [
{
"id": "<string>",
"workspace_id": "<string>",
"action": {},
"resource_type": {},
"resource_id": "<string>",
"resource_name": {},
"params": {},
"status": {},
"requested_by": {},
"decided_by": {},
"decided_at": {},
"expires_at": "<string>",
"created_at": "<string>"
}
]
}An API key needs the
workspaces:read scope. Approving and rejecting stay dashboard-only:
deciding a request is a human call, including when the request came from an agent.members:manage.
Path
string
required
Workspace ID.
Query
string
One of
pending, approved, rejected, expired. Omitted = all.Response
APIWorkspaceActionRequest[]
Show Toggle object
Show Toggle object
string
string
'app_delete' | 'database_delete' | 'snapshot_create' | 'snapshot_restore'
'application' | 'database'
string
string | null
object
The parameters persisted at request time — this, not anything sent on approve, is what runs.
'pending' | 'approved' | 'rejected' | 'expired'
object
{ id, display_name }.object | null
{ id, display_name }, null while pending.string | null
string
24h after creation.
string
Errors
| Status | Code | When |
|---|---|---|
| 403 | API_KEY_SCOPE_DENIED | Called with an API key that lacks the workspaces:read scope. |
| 403 | WORKSPACE_PERMISSION_DENIED | Caller lacks members:manage. |
| 404 | WORKSPACE_NOT_FOUND | Workspace doesn’t exist or you’re not a member. |