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 execution = await client.executions.get('id');

console.log(execution.id);
{
  "details": {
    "request": {
      "env": [
        {
          "name": "<string>",
          "secret_id": "<string>",
          "value": "<string>"
        }
      ],
      "http": {
        "allow": [
          {
            "auth": {
              "basic": {
                "password": "<string>",
                "secret_id": "<string>",
                "user_id": "<string>"
              },
              "bearer": {
                "secret_id": "<string>",
                "token": "<string>"
              },
              "query": {
                "key": "<string>",
                "secret_id": "<string>",
                "value": "<string>"
              }
            },
            "host": "<string>"
          }
        ]
      },
      "input": "<any>",
      "revision_id": "<string>"
    },
    "response": {
      "execution": {
        "duration": 123,
        "exit_code": 123,
        "id": "<string>",
        "stderr": "<string>",
        "stdout": "<string>"
      },
      "output": "<any>",
      "output_status": "error"
    },
    "tool_id": "<string>",
    "type": "tool"
  },
  "duration": 123,
  "exit_code": 123,
  "id": "<string>",
  "language": "python",
  "started_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Response

200
application/json

OK

The response is of type object.