---
title: "Get a Laravel site's queues"
url: https://docs.corefinity.com/api/reference/runtime/get-site-laravel-queues
type: endpoint
last_updated: 2026-11-13
feature: laravel
related:
  - https://docs.corefinity.com/guides/platforms/laravel.md
  - https://docs.corefinity.com/mcp/tools/corestack_site_laravel_queues_get.md
---
# Get a Laravel site's queues

Answers the jobs waiting in each queue of a Laravel site, and which queues a worker listens on. The figures
are read on the site without running the application's code, and an answer is kept for up to a minute:
`checked_at` says when it was read. Try-it is off because the read runs a command on the site.

```http
GET /api/corestack/sites/{site}/laravel/queues
```

- Scope: `read`
- Two-factor: required on your account (all)
- Rate limit: 120 a minute
- Try it in the console: off. It has not been cleared for the console. Copy the request and run it yourself when you are sure.

## Path parameters

- `site` (integer, required): The id of a site row. A website's production site and each of its environments has its own id. Digits only.

## Request

### curl

```bash
curl https://manage.corefinity.com/api/corestack/sites/1042/laravel/queues \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->get('https://manage.corefinity.com/api/corestack/sites/1042/laravel/queues');

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/laravel/queues', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
  },
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.get(
    "https://manage.corefinity.com/api/corestack/sites/1042/laravel/queues",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 The site's queues, largest first.

```json
{
  "checked_at": "2026-11-03T09:14:03Z",
  "config_source": "cache",
  "connection": "database",
  "driver": "database",
  "failed": 0,
  "listening": {
    "queues": [
      "default"
    ],
    "source": "default"
  },
  "queues": [
    {
      "delayed": 0,
      "listened": false,
      "name": "webhooks",
      "name_supported": true,
      "oldest_ready_at": "2026-11-03T09:00:00Z",
      "ready": 40,
      "reserved": 0,
      "unworked": true,
      "waiting_seconds": 843
    },
    {
      "delayed": 0,
      "listened": true,
      "name": "default",
      "name_supported": true,
      "oldest_ready_at": "2026-11-03T09:13:20Z",
      "ready": 1,
      "reserved": 0,
      "unworked": false,
      "waiting_seconds": 43
    }
  ],
  "reason": null,
  "state": "ok",
  "truncated": false,
  "unreadable_names": 0,
  "unworked": [
    "webhooks"
  ]
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), or your company requires two-factor authentication and you have not set it up. For routes outside Managed Clusters.

```json
{
  "code": "company_unavailable",
  "message": "Your company is unavailable.",
  "reason": "company_unavailable"
}
```

### 404 The id does not exist or is a site you cannot see, the feature is not on for your company (`feature_off`), or the site is not a Laravel site (`wrong_platform`).

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 409 The read runs a command on the site, and the site cannot take one now. `reason` says why: `not_running`; `busy` (another command or change is running on it); `command_running`, `restore_running`, `deployment_running` or `install_running` (other work is running on the site); `exec_unresolved` (an earlier command has not been confirmed stopped: contact support); `removed`; or `site_unadopted`. An answer kept from the last minute is given without asking the site, so none of these is answered then.

```json
{
  "code": "busy",
  "message": "Another command is running on this site. Try again in a moment.",
  "reason": "busy"
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

### 502 The queues could not be read (`helper_failed`). `helper` says what failed: `database` or `redis` (the site's queue store did not answer), `exec` (the read did not run) or `output` (its answer could not be used).

```json
{
  "code": "helper_failed",
  "helper": "database",
  "message": "The site's database did not answer, so its queues could not be read. Try again in a moment.",
  "reason": "helper_failed"
}
```

### 503 The request runs a command on the site, and Corefinity has switched commands on sites off for the moment (`switched_off`), the site's cluster could not be reached (`connect_failed`), or the site's files could not be read (`temporarily_unavailable`). Try again later.

```json
{
  "code": "connect_failed",
  "message": "The cluster could not be reached",
  "reason": "connect_failed"
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 404 | `wrong_platform` | This is not available for the site's platform. Use it on a site of the platform it is for. |
| 409 | `busy` | Another operation is running on the site. Wait for it to finish. |
| 409 | `command_running` | Another action or command is still running on the site. Wait for it to finish, then try again. |
| 409 | `deployment_running` | A deployment of the environment is running, or a stopped one is still being cleaned up. Wait for it to finish, then try again. |
| 409 | `exec_unresolved` | An earlier command on the site has not been confirmed stopped. Contact support. |
| 409 | `install_running` | An installer is still running on the site. Contact support. |
| 409 | `not_running` | The site, environment or deployment is not running. Read the message: where it can be started or will recover, start it or wait, then try again. |
| 409 | `removed` | The site or environment is being removed, or has been. Nothing can be changed on it. |
| 409 | `restore_running` | A restore is running on the site. Wait for it to finish, then try again. |
| 409 | `site_unadopted` | This site is not ready to be changed from the Control Panel yet. Contact support. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 502 | `helper_failed` | The site's database did not answer, so its queues could not be read. Try again in a moment. |
| 503 | `connect_failed` | The cluster could not be reached. |
| 503 | `temporarily_unavailable` | The Control Panel could not answer just now. Nothing was started; try again shortly. |
| 503 | `switched_off` | Corefinity has switched this action off for the moment. Try again later. |

## The same task elsewhere

- Guide: [Laravel](https://docs.corefinity.com/guides/platforms/laravel.md)
- MCP tool: [`corestack_site_laravel_queues_get`](https://docs.corefinity.com/mcp/tools/corestack_site_laravel_queues_get.md)
