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

200
application/json

Run details retrieved successfully

The response is of type object.