QueueHub API
Integrate queue monitoring directly into your tools, CI/CD pipelines, and custom dashboards. Our REST API gives you programmatic access to every QueueHub feature.
https://api.queuehub.techAuthentication
All API requests require authentication via an API key. Include your key in theAuthorizationheader using the Bearer scheme.
# Your API key is available in your workspace settings
# under "API Keys". Keep it secure — treat it like a password.
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/queuesSecurity note: Never expose your API key in client-side code, version control, or public repositories. Use environment variables or a secrets manager. Rotate keys regularly from your workspace settings.
Endpoints
/api/v1/queuesList all queues across all connected backends. Supports filtering by backend type, queue name prefix, and status.
Example Request
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/queues \
-G -d "backend=bullmq" -d "status=active"/api/v1/queues/{queue_id}Get detailed information about a specific queue, including current metrics, worker count, and recent activity.
Example Request
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/queues/queue_abc123/api/v1/queues/{queue_id}/jobsRetrieve jobs from a queue with powerful filtering by status, date range, priority, and custom data fields.
Example Request
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/queues/queue_abc123/jobs \
-G -d "status=failed" -d "limit=50" -d "offset=0"/api/v1/queues/{queue_id}/jobs/{job_id}Inspect a single job in detail, including its full payload, stack trace, processing history, and timing waterfall.
Example Request
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/queues/queue_abc123/jobs/job_xyz789/api/v1/queues/{queue_id}/jobs/{job_id}/retryRetry a failed job. Optionally set a delay before the retry executes. Supports both individual jobs and bulk retries.
Example Request
curl -X POST -H "Authorization: Bearer QH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"delay": 5000}' \
https://api.queuehub.tech/api/v1/queues/queue_abc123/jobs/job_xyz789/retry/api/v1/queues/{queue_id}/jobs/bulk-retryRetry multiple failed jobs in a single operation. Accepts up to 500 job IDs per request with progress tracking.
Example Request
curl -X POST -H "Authorization: Bearer QH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"job_ids": ["job_1", "job_2", "job_3"], "delay": 0}' \
https://api.queuehub.tech/api/v1/queues/queue_abc123/jobs/bulk-retry/api/v1/queues/{queue_id}/jobs/{job_id}Remove a single job from the queue. The job is permanently deleted and cannot be recovered.
Example Request
curl -X DELETE -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/queues/queue_abc123/jobs/job_xyz789/api/v1/agentsList all deployed agents with their connection status, version, region, and last-seen timestamp.
Example Request
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/agents/api/v1/metricsRetrieve aggregated metrics for dashboards and external monitoring. Supports granularity from 1-minute to 1-day buckets.
Example Request
curl -H "Authorization: Bearer QH_API_KEY" \
https://api.queuehub.tech/api/v1/metrics \
-G -d "granularity=1h" -d "range=7d"/api/v1/alertsCreate a new alert rule. Configure conditions, notification channels, and escalation policies all through the API.
Example Request
curl -X POST -H "Authorization: Bearer QH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "High failure rate", "condition": "failure_rate > 0.05", "channels": ["slack"]}' \
https://api.queuehub.tech/api/v1/alertsRate Limits
| Plan | Requests / Minute | Concurrent |
|---|---|---|
| Free | 60 | 5 |
| Team | 600 | 25 |
| Enterprise | 5,000 | 100 |
Rate limit headers (X-RateLimit-Remaining,X-RateLimit-Reset) are included in every response. When exceeded, the API returns 429 Too Many Requests.
Error Handling
The QueueHub API uses conventional HTTP response codes. All errors return a JSON body with an error field containing a machine-readable code and a human-readable message.
| Code | Meaning |
|---|---|
| 400 | Bad request — invalid parameters or malformed payload |
| 401 | Unauthorized — missing or invalid API key |
| 403 | Forbidden — API key lacks permissions for this resource |
| 404 | Not found — queue, job, or resource does not exist |
| 429 | Too many requests — rate limit exceeded. Retry after the time specified in Retry-After header |
| 500 | Internal server error — something went wrong on our side. Retry with exponential backoff |
SDKs
We provide official SDKs to make integrating QueueHub into your applications even easier. Our SDKs handle authentication, request retries, pagination, and error handling for you.
JavaScript / TypeScript
npm package
npm install @queuehub/sdkimport { QueueHub } from "@queuehub/sdk";
const qh = new QueueHub({
apiKey: process.env.QUEUEHUB_API_KEY,
});
const queues = await qh.queues.list({
backend: "bullmq",
limit: 50,
});Python
pip package (coming soon)
pip install queuehub-sdk