JavaScript
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const secret of client.secrets.list()) {
console.log(secret.id);
}{
"secrets": [
{
"id": "<string>",
"name": "<string>"
}
]
}Secrets
List secrets
Returns a list of secrets in your project.
JavaScript
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const secret of client.secrets.list()) {
console.log(secret.id);
}{
"secrets": [
{
"id": "<string>",
"name": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The ID of the item to start after. To get the next page of results, set this to the ID of the last item in the current page.
The number of items to return. Defaults to 100. Maximum is 100.
Response
OK
Show child attributes
Show child attributes
⌘I