Secrets
List the secrets saved in a workspace
Lists the secrets saved in the workspace, names only. Reference them
by <slug>.<field> in a session’s secrets. Secret values are
never returned. With an API key, no field values are returned at
all. Secrets are added, changed and deleted in the Lusor app’s
Vault, not with an API key.
GET
/
v1
/
workspaces
/
{workspaceId}
/
vault
List the secrets saved in a workspace
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/vault \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/vault', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/vault"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"slug": "<string>",
"label": "<string>",
"kind": "<string>",
"fields": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"allowed_packages": [
"<string>"
]
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
List the secrets saved in a workspace
curl --request GET \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/vault \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/vault', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/vault"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"slug": "<string>",
"label": "<string>",
"kind": "<string>",
"fields": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"allowed_packages": [
"<string>"
]
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
