Get a secret by name
curl --request GET \
--url https://albus.sh/api/secrets/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/secrets/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"masked_value": "<string>"
}{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}Secrets
Get a secret by name
GET
/
secrets
/
{name}
Get a secret by name
curl --request GET \
--url https://albus.sh/api/secrets/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/secrets/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"masked_value": "<string>"
}{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}Authorizations
bearerAuthapiKey
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.