Skip to main content
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
});

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

console.log(secret.id);
{
  "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

OK

id
string
required
name
string
required
I