POST
/
v1
/
secrets
import Runloop from '@runloop/api-client';

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

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

console.log(secretView.id);
{
  "id": "<string>",
  "name": "<string>",
  "create_time_ms": 123,
  "update_time_ms": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Parameters required to create a new Secret.

Response

200
application/json

Secret created successfully. Returns the Secret with its value included.

A Secret represents a key-value pair that can be securely stored and used in Devboxes as environment variables.