import Riza from '@riza-io/api';

const client = new Riza({
  apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const secret = await client.secrets.create({ name: 'name', value: 'value' });

  console.log(secret.id);
}

main();
{
  "id": "<string>",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
value
string
required

Response

200
application/json
OK
id
string
required
name
string
required