List secrets
curl --request GET \
--url https://api.arg.ai/api/organizations/{orgId}/secrets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/organizations/{orgId}/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.arg.ai/api/organizations/{orgId}/secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Organizations
List secrets
List the secrets you can spend in this organization, as metadata only - a name, a four-character hint of the value, and when it was last used. There is no route that returns a value: a secret is write-only once stored. Organizations outside the feature rollout answer 404.
GET
/
api
/
organizations
/
{orgId}
/
secrets
List secrets
curl --request GET \
--url https://api.arg.ai/api/organizations/{orgId}/secrets \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/organizations/{orgId}/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.arg.ai/api/organizations/{orgId}/secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}