List proxy egress events that used this credential
Returns proxy_audit events for every outbound request that the in-host enforcement daemon swapped with this credential, across every sandbox it was bound to. Each row includes the originating sandbox name (null when that sandbox has since been deleted).
curl --request GET \
--url https://api.superserve.ai/secrets/{name}/audit \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.superserve.ai/secrets/{name}/audit"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.superserve.ai/secrets/{name}/audit', 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.superserve.ai/secrets/{name}/audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.superserve.ai/secrets/{name}/audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.superserve.ai/secrets/{name}/audit")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superserve.ai/secrets/{name}/audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"ts": "2023-11-07T05:31:56Z",
"sandbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "<string>",
"host": "<string>",
"path": "<string>",
"status": 123,
"sandbox_name": "<string>",
"secret_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"upstream_status": 123,
"latency_ms": 123,
"error_code": "<string>"
}
]{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Path Parameters
Secret name as set at creation.
Query Parameters
1 <= x <= 200Return events with id strictly less than this cursor.
Narrow by HTTP status class; errors includes 4xx and 5xx.
2xx, 3xx, 4xx, 5xx, errors Response
Audit events (most recent first)
Monotonic event id — also the pagination cursor.
Upstream host targeted by the request.
Status the proxy returned to the sandbox.
Originating sandbox's name at query time. Only populated by cross-sandbox views such as GET /secrets/{name}/audit. Null when the sandbox has since been deleted.
Secret involved in this request, if any.
Status returned by the upstream (absent if the proxy short-circuited).
Stable error tag when the proxy denied or failed the request.
curl --request GET \
--url https://api.superserve.ai/secrets/{name}/audit \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.superserve.ai/secrets/{name}/audit"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.superserve.ai/secrets/{name}/audit', 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.superserve.ai/secrets/{name}/audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.superserve.ai/secrets/{name}/audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.superserve.ai/secrets/{name}/audit")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superserve.ai/secrets/{name}/audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"ts": "2023-11-07T05:31:56Z",
"sandbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "<string>",
"host": "<string>",
"path": "<string>",
"status": 123,
"sandbox_name": "<string>",
"secret_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"upstream_status": 123,
"latency_ms": 123,
"error_code": "<string>"
}
]{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}