Quick Start
This guide walks you through creating an account, generating an API key, and submitting your first task.
1. Create an account
Section titled “1. Create an account”Sign up at asyncqueue.io/signup to get access to the dashboard and API.
2. Generate an API key
Section titled “2. Generate an API key”Once logged in, navigate to Settings > API Keys and create a new key. Copy it somewhere safe - you won’t be able to see it again.
3. Push your first task
Section titled “3. Push your first task”Use curl to submit a task to the default queue:
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/webhooks/process", "payload": { "email": "[email protected]", "action": "send_welcome" } }'4. Handle the webhook
Section titled “4. Handle the webhook”When the task is ready to execute, AsyncQueue sends a POST request to your webhook_url with the task payload:
{ "task_id": "task_abc123", "queue": "default", "payload": { "action": "send_welcome" }, "attempt": 1}Return a 200 status code to mark the task as completed. Any other status code triggers a retry based on your queue’s retry policy.
5. Check task status
Section titled “5. Check task status”Retrieve the current state of a task:
curl https://api.asyncqueue.io/v1/tasks/task_abc123 \ -H "Authorization: Bearer YOUR_API_KEY"Next steps
Section titled “Next steps”- Authentication - Learn about API key scopes and team access
- Tasks API - Explore the full task lifecycle
- Queues API - Configure queue behavior and retry policies