bulkGetJobs()
Signature
client.bulkGetJobs(payload: JobBulkGetPayload, includeHttpDetails?: boolean): Promise<JobBulkGetResponse>Parameters#
| Param | Type | Description |
|---|---|---|
payload.ids | string[] | Array of job UUIDs to fetch (maximum 100 IDs) |
includeHttpDetails | boolean (optional) | Include HTTP headers and body from latest job run |
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 result = await client.bulkGetJobs({
ids: [
'9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c',
'a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d',
'b2c3d4e5-6f7g-8h9i-0j1k-2l3m4n5o6p7q'
]
})
console.log('Jobs fetched:', result.total)
result.jobs.forEach(job => {
console.log(`- ${job.name} (${job.status})`)
})
} catch (err) {
if (err instanceof VeloraError && err.status === 400) {
console.log('Validation error:', err.body?.msg)
}
}Response#
JobBulkGetResponse
{
"jobs": [
{
"id": "9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
"name": "Daily digest",
"status": "active",
"schedule_cron": "0 9 * * 1-5",
"next_run_at": "2026-04-07T09:00:00.000Z",
"folder_path": "/",
"webhook_signature_enabled": true
},
{
"id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"name": "Weekly report",
"status": "active",
"schedule_cron": "0 10 * * 1",
"next_run_at": "2026-04-13T10:00:00.000Z",
"folder_path": "/",
"webhook_signature_enabled": false
}
],
"total": 2
}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, each job 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, *)
Limitations#
- Maximum 100 IDs per request
- Only jobs belonging to the authenticated owner are returned
- IDs that don't exist or belong to other owners are silently ignored
Common errors#
| Status | error | Cause |
|---|---|---|
400 | validation_error | ids is required and must be an array, or exceeds 100 IDs limit |
401 | invalid_api_key | Missing or revoked API key |
403 | insufficient_scope | Key lacks jobs:read scope |
500 | db_error | Temporary database issue |