List Vault
curl --request GET \
--url https://api.agents.slng.ai/v1/agents/secrets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agents.slng.ai/v1/agents/secrets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agents.slng.ai/v1/agents/secrets', 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.agents.slng.ai/v1/agents/secrets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.agents.slng.ai/v1/agents/secrets"
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))
}HttpResponse<String> response = Unirest.get("https://api.agents.slng.ai/v1/agents/secrets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agents.slng.ai/v1/agents/secrets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"organisation_id": "9c1e5b2a-1111-4c3d-8e2f-abcdef012345",
"name": "STRIPE_KEY",
"kind": "secret",
"description": "Primary Stripe API key",
"value": null,
"has_value": true,
"is_managed": false,
"revision": 2,
"created_by": "user:alice",
"last_rotated_by": "user:bob",
"last_rotated_at": "2026-08-20T12:00:00Z",
"created_at": "2026-08-01T09:00:00Z",
"updated_at": "2026-08-20T12:00:00Z"
},
{
"id": "5c2f7a10-3333-4e5f-a1b2-c3d4e5f60789",
"organisation_id": "9c1e5b2a-1111-4c3d-8e2f-abcdef012345",
"name": "DEFAULT_REGION",
"kind": "variable",
"description": "Default deployment region",
"value": "us-east-1",
"has_value": true,
"is_managed": false,
"revision": 1,
"created_by": "user:alice",
"last_rotated_by": null,
"last_rotated_at": null,
"created_at": "2026-08-05T10:00:00Z",
"updated_at": "2026-08-05T10:00:00Z"
}
]Vault
List Vault
List every Vault entry for the authenticated organisation, ordered by name. Secret values are masked (value null, has_value true); variable values are included for authorized readers.
GET
/
v1
/
agents
/
secrets
List Vault
curl --request GET \
--url https://api.agents.slng.ai/v1/agents/secrets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agents.slng.ai/v1/agents/secrets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.agents.slng.ai/v1/agents/secrets', 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.agents.slng.ai/v1/agents/secrets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.agents.slng.ai/v1/agents/secrets"
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))
}HttpResponse<String> response = Unirest.get("https://api.agents.slng.ai/v1/agents/secrets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.agents.slng.ai/v1/agents/secrets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"organisation_id": "9c1e5b2a-1111-4c3d-8e2f-abcdef012345",
"name": "STRIPE_KEY",
"kind": "secret",
"description": "Primary Stripe API key",
"value": null,
"has_value": true,
"is_managed": false,
"revision": 2,
"created_by": "user:alice",
"last_rotated_by": "user:bob",
"last_rotated_at": "2026-08-20T12:00:00Z",
"created_at": "2026-08-01T09:00:00Z",
"updated_at": "2026-08-20T12:00:00Z"
},
{
"id": "5c2f7a10-3333-4e5f-a1b2-c3d4e5f60789",
"organisation_id": "9c1e5b2a-1111-4c3d-8e2f-abcdef012345",
"name": "DEFAULT_REGION",
"kind": "variable",
"description": "Default deployment region",
"value": "us-east-1",
"has_value": true,
"is_managed": false,
"revision": 1,
"created_by": "user:alice",
"last_rotated_by": null,
"last_rotated_at": null,
"created_at": "2026-08-05T10:00:00Z",
"updated_at": "2026-08-05T10:00:00Z"
}
]Authorizations
Your SLNG consumer API key.
Response
The organisation Vault entries, ordered by name, with secret values masked.
Kind of this entry: secret values are never returned, variable values are readable by authorized callers.
Available options:
secret, variable The stored value, returned only for variables to authorized readers. Always null for secrets, whose value is never returned.
Whether a value is stored. True even for secrets, whose value is withheld from responses.
Whether this entry is managed by SLNG rather than created directly by your organisation.
Was this page helpful?