getJob()

Signature
client.getJob(id: string, includeHttpDetails?: boolean): Promise<Job>

Parameters#

ParamTypeDescription
idstringUUID of the job to fetch
includeHttpDetailsboolean (optional)Include HTTP headers and body from the latest job run in the response

Usage#

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

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

try {
  const job = await client.getJob('9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c')
  console.log('Job name:', job.name)
  console.log('Next run:', job.next_run_at)
  console.log('Status:', job.status)
} catch (err) {
  if (err instanceof VeloraError && err.status === 404) {
    console.log('Job not found')
  }
}

Response#

Job
{
  "id": "9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
  "name": "Daily digest",
  "status": "active",
  "type": "http",
  "target_url": "https://yourapp.com/cron/daily",
  "method": "POST",
  "schedule_cron": "0 9 * * 1-5",
  "schedule_type": "cron",
  "timezone": "America/New_York",
  "next_run_at": "2026-04-07T09:00:00.000Z",
  "last_run_at": "2026-04-06T09:00:00.000Z",
  "max_retries": 3,
  "timeout_ms": 30000,
  "created_at": "2026-04-01T12:00:00.000Z",
  "updated_at": "2026-04-01T12:00:00.000Z",
  "headers": null,
  "payload": null,
  "webhook_secret": null,
  "webhook_signature_enabled": true
}
The webhook_signature_enabled field is always included in job responses. It is set to true when the job has a webhook_secret configured, indicating that Velora will sign outgoing requests with the X-Hub-Signature-256 header.
When includeHttpDetails=true, the response will include an http_details field with headers, body, status_code, and timestamp from the latest job run.

Required scope#

Requires: jobs:read (or admin, *)

Common errors#

StatuserrorCause
401invalid_api_keyMissing or revoked API key
403insufficient_scopeKey lacks jobs:read scope
404not_foundJob does not exist or belongs to another account

© 2026 Velora · API Documentation