POST
/
runs
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.create({ taskId: 'task_123456' });

  console.log(run.id);
}

main();
{
  "id": "<string>",
  "queued_at": "2023-11-07T05:31:56Z",
  "inputs": {}
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

200
application/json

Task run created successfully

The response is of type object.