Bulk get jobs

Retrieve multiple jobs by their IDs in a single API call. This endpoint is optimized for fetching multiple specific jobs efficiently, reducing the number of round-trips compared to individual GET requests. Only jobs belonging to the authenticated owner are returned.

Use cases#

Use this endpoint when you need to:
- Fetch multiple jobs for a dashboard or overview page
- Sync job data across systems
- Batch process job information
- Display job details in a list view
- Implement job selection and bulk operations

Request#

FieldTypeRequiredDescription
idsstring[]YesArray of job IDs to fetch. Maximum 100 IDs per request.
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.
To include HTTP headers and body from the latest job run in the response, add ?include_http_details=true to the URL.
Request Body Example
{
  "ids": [
    "9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
    "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    "b2c3d4e5-6f7g-8h9i-0j1k-2l3m4n5o6p7q"
  ]
}

Code examples#

curl -X POST https://velora-api.psalinks.com/api/v1/jobs/bulk \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": ["JOB_ID_1", "JOB_ID_2", "JOB_ID_3"]}'

Response#

200 Response (success)
{
  "jobs": [
    {
      "id": "9f4a1c2b-3d4e-5f6a-7b8c-9d0e1f2a3b4c",
      "name": "Daily digest",
      "status": "active",
      "schedule_cron": "0 9 * * 1-5",
      "next_run_at": "2026-03-24T09: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-03-29T10:00:00.000Z",
      "folder_path": "/",
      "webhook_signature_enabled": false
    }
  ],
  "total": 2
}
200 Response (empty result)
{
  "jobs": [],
  "total": 0
}
400 Response (validation error)
{
  "error": "validation_error",
  "msg": "Maximum 100 IDs per request"
}
FieldTypeDescription
jobsobject[]Array of job objects. Only includes jobs that exist and belong to the authenticated owner.
totalnumberTotal number of jobs returned in the response.

Error responses#

StatuserrormsgTypical cause
400validation_errorids is required and must be an arrayRequest body missing or malformed
400validation_errorMaximum 100 IDs per requestToo many IDs in the request array
401api_key_missingAPI key authentication failedMissing Authorization header
401invalid_api_keyAPI key authentication failedInvalid or expired API key
403insufficient_scopeMissing scope: jobs:readAPI key lacks required scope
500db_errorDatabase query failedTemporary database issue

Behavior notes#

- Only jobs belonging to the authenticated owner are returned
- If some IDs don't exist or belong to other owners, they are silently ignored
- The response only includes jobs that were successfully found
- Order of jobs in response matches the order of IDs in the request
- Duplicate IDs in the request are deduplicated before processing

Limitations#

- Maximum 100 IDs per request
- API key must have jobs:read scope (or wildcard/admin scope)
- Rate limited to 60 requests per minute per API key

Best practices#

- Batch requests when possible to reduce API calls
- Cache job data locally when appropriate
- Handle empty responses gracefully
- Validate job IDs before making requests
- Use pagination with the standard list endpoint for large datasets

Required scope: jobs:read (or wildcard/admin scope). Ensure your API key has the appropriate permissions.
Maximum 100 IDs per request. For larger datasets, use the paginated list endpoint or make multiple bulk requests.
Only jobs belonging to the authenticated owner are returned. IDs that don't exist or belong to other owners are silently ignored.

© 2026 Velora · API Documentation