triggerJob()

Signature
client.triggerJob(id: string): Promise<SimpleResponse>

Parameters#

ParamTypeDescription
idstringUUID of the job to trigger

Usage#

ts
import { VeloraClient } from '@rimora/velora'
import fetch from 'node-fetch'

const client = new VeloraClient({
  apiKey: process.env.VELORA_API_KEY,
  fetch: fetch as any
})

const jobId = '9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c'

// Fire an immediate run (e.g. after a data import)
const result = await client.triggerJob(jobId)
console.log(result.msg)          // "Job triggered"
console.log(result.triggered_at) // ISO timestamp

Response#

SimpleResponse
{
  "id": "9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
  "msg": "Job triggered",
  "triggered_at": "2026-04-07T15:30:00.000Z"
}
Manually triggering a job does not shift its scheduled next_run_at. The normal schedule continues unaffected.

Required scope#

Requires: jobs:write or jobs:trigger (or admin, *)

Common errors#

StatuserrorCause
401invalid_api_keyMissing or revoked API key
403insufficient_scopeKey lacks jobs:write or jobs:trigger scope
404not_foundJob does not exist

© 2026 Velora · API Documentation