Secrets
Get one saved secret
One saved secret of the key’s workspace, names only: the same view
as an entry of GET /v1/workspaces/{workspaceId}/vault, with no
field values for an API key. A secret of another workspace, or a
malformed id, returns an opaque 404.
GET
/
v1
/
vault
/
{itemId}
Get one saved secret
curl --request GET \
--url https://api.lusor.ai/v1/vault/{itemId} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/vault/{itemId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/vault/{itemId}"
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
Get one saved secret
curl --request GET \
--url https://api.lusor.ai/v1/vault/{itemId} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/vault/{itemId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/vault/{itemId}"
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>"
}
