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 response = await client.tools.exec('id');

  console.log(response.execution);
}

main();
{
  "execution": {
    "duration": 123,
    "exit_code": 123,
    "stderr": "<string>",
    "stdout": "<string>"
  },
  "output": "<any>",
  "output_status": "error"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json

Response

200
application/json
OK

The response is of type object.