# Check the async queue

`GET https://api.answerline.dev/v1/async/status`

Returns async queue metrics for the whole organization: how many tasks are queued and processing, plus concurrency in use.

## Returns

- `queuedTasks` (integer, required): Tasks this organization currently has waiting in the queue.
- `processingTasks` (integer, required): Tasks this organization has in progress right now.
- `priorityBreakdown` (object[], required): Number of queued tasks for each priority level, highest priority first. Priority levels with no queued tasks are left out.
- `concurrency` (object): Concurrency in use right now; null when it could not be read.
  - `concurrency.used` (integer): Concurrency slots occupied right now.
  - `concurrency.max` (integer): Highest number of tasks this organization may run concurrently.

## Responses

- 200: Success: queue metrics returned.
- 401: Unauthorized - authentication failed
- 429: Too Many Requests - the service dropped the request because it was overloaded (`SERVICE_OVERLOADED`), which returns `Retry-After` without any limit headers, or one address presented too many unknown keys (`RATE_LIMIT_EXCEEDED`, with `Retry-After`)
- 500: Internal Server Error

## Request

curl:

```bash
curl -X GET "https://api.answerline.dev/v1/async/status" \
  -H "Authorization: Bearer $API_KEY"
```


## Example responses

200:

```json
{
  "queuedTasks": 3,
  "processingTasks": 2,
  "priorityBreakdown": [
    {
      "priority": 5,
      "count": 2
    }
  ],
  "concurrency": {
    "used": 2,
    "max": 5
  }
}
```

