POST
/
runs
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.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
taskId
string
required

The ID of the task to execute

profileId
string

Optional user-specified UID for a profile linked via magic link

inputs
object

The inputs required for the task

url
string<uri>

An optional URL to be processed by the task

Response

Task run created successfully

id
string

Unique identifier for the run

queued_at
string<date-time>

Timestamp when the run was queued

inputs
object

The inputs provided for the task