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#
| Field | Type | Required | Description |
|---|---|---|---|
ids | string[] | Yes | Array of job IDs to fetch. Maximum 100 IDs per request. |
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.{
"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#
{
"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
}{
"jobs": [],
"total": 0
}{
"error": "validation_error",
"msg": "Maximum 100 IDs per request"
}| Field | Type | Description |
|---|---|---|
jobs | object[] | Array of job objects. Only includes jobs that exist and belong to the authenticated owner. |
total | number | Total number of jobs returned in the response. |
Error responses#
| Status | error | msg | Typical cause |
|---|---|---|---|
400 | validation_error | ids is required and must be an array | Request body missing or malformed |
400 | validation_error | Maximum 100 IDs per request | Too many IDs in the request array |
401 | api_key_missing | API key authentication failed | Missing Authorization header |
401 | invalid_api_key | API key authentication failed | Invalid or expired API key |
403 | insufficient_scope | Missing scope: jobs:read | API key lacks required scope |
500 | db_error | Database query failed | Temporary 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