Simple REST API
AsyncQueue provides a clean REST API that lets you create a task in a single HTTP request. No SDK required, no complex protocols - just standard HTTP with JSON payloads.
Create a task in one request
Section titled “Create a task in one request”curl -X POST https://api.asyncqueue.io/v1/tasks \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "queue": "default", "webhook_url": "https://your-app.com/hook", "payload": {"key": "value"} }'That’s it. Your task is queued and will be delivered to your webhook endpoint.
API design principles
Section titled “API design principles”- RESTful - Standard HTTP methods (GET, POST, PATCH, DELETE) with predictable URL patterns
- JSON everywhere - Request and response bodies use JSON
- Bearer auth - Simple API key authentication via the
Authorizationheader - Consistent errors - All errors return a JSON body with
errorandmessagefields
Endpoints overview
Section titled “Endpoints overview”| Method | Endpoint | Description |
|---|---|---|
POST | /v1/tasks | Create a new task |
GET | /v1/tasks/:id | Get task details and status |
GET | /v1/tasks | List tasks with filtering |
DELETE | /v1/tasks/:id | Remove a pending task |
POST | /v1/queues | Create a queue |
GET | /v1/queues | List all queues |
PATCH | /v1/queues/:name | Update queue settings |
POST | /v1/queues/:name/pause | Pause a queue |
POST | /v1/queues/:name/resume | Resume a queue |
Works with any language
Section titled “Works with any language”Because it is plain HTTP, you can use AsyncQueue from any language or platform:
# Pythonimport requests
requests.post("https://api.asyncqueue.io/v1/tasks", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={"queue": "default", "webhook_url": "https://your-app.com/hook", "payload": {}})// JavaScriptfetch("https://api.asyncqueue.io/v1/tasks", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json", }, body: JSON.stringify({ queue: "default", webhook_url: "https://your-app.com/hook", payload: {}, }),});# cURL, shell scripts, cron jobscurl -X POST https://api.asyncqueue.io/v1/tasks \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"queue":"default","webhook_url":"https://your-app.com/hook","payload":{}}'Next steps
Section titled “Next steps”- Authentication - API key setup and management
- Tasks API reference - Full task endpoint documentation
- Queues API reference - Queue configuration and management