import Riza from '@riza-io/api';const client = new Riza({ apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted});const secret = await client.secrets.create({ name: 'name', value: 'value' });console.log(secret.id);
Copy
Ask AI
{ "id": "<string>", "name": "<string>"}
Secrets
Create secret
Create a secret in your project.
JavaScript
Copy
Ask AI
import Riza from '@riza-io/api';const client = new Riza({ apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted});const secret = await client.secrets.create({ name: 'name', value: 'value' });console.log(secret.id);