GET
/
runs
/
{id}
JavaScript
import Vern from 'vern';

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

async function main() {
  const run = await client.runs.retrieve('id');

  console.log(run.id);
}

main();
{
  "id": "<string>",
  "task": "<string>",
  "inputs": {},
  "status": "queued",
  "created_at": "2023-11-07T05:31:56Z",
  "started_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "response": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

The ID of the run to retrieve

Response

Run details retrieved successfully

id
string

Unique identifier for the run

task
string

The name of the task that was executed

inputs
object

The inputs provided for the task

status
enum<string>

The current status of the run

Available options:
queued,
running,
complete,
failed
created_at
string<date-time>

Timestamp when the run was created

started_at
string<date-time>

Timestamp when the run started executing

completed_at
string<date-time>

Timestamp when the run completed

response
object

The response data from the task execution