# List ticket inboxes

> GET https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes

Group: Tickets. Page: https://www.nabrah.ai/en/docs/api-reference/tickets/list-ticket-inboxes

Lists the ticket inboxes configured for the project tied to your API key. Each inbox represents a channel/queue (e.g. WhatsApp) with a `config` object controlling ticketing behavior. Use the returned `id`/`inbox_id` values when creating tickets or building filters, and to manage inbox config via PATCH/POST/DELETE on the same path.

## Response shape

- **inboxes[]**: Each inbox includes its database `id`, the channel `inbox_id`, `inbox_type` (e.g. `whatsapp`), `project_id`, display `name`, the `config` object, and `created_at` (ISO 8601 timestamp). Fields: `id`, `inbox_id`, `inbox_type`, `project_id`, `name`, `config`, `created_at`.

## Authorization

- `X-API-Key` (string, header, required): your workspace API key.

## Response

### 200 Successful Response

Content type: `application/json`

```json
{
  "inboxes": [
    {
      "id": 0,
      "inbox_type": "whatsapp",
      "inbox_id": 0,
      "project_id": "00000000-0000-4000-8000-000000000000",
      "name": "string",
      "config": {},
      "created_at": "2026-01-15T12:00:00.000Z"
    }
  ]
}
```

## Request examples

### cURL

```bash
curl --request GET \
  --url 'https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes"
headers = {"X-API-Key": "<your-api-key>"}

response = requests.get(url, headers=headers)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes", {
  method: "GET",
  headers: { "X-API-Key": "<your-api-key>" },
});

const data = await response.json();
console.log(data);
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.nabrah.ai/api/ext/omni_v2/ticket/inboxes", nil)
	req.Header.Set("X-API-Key", "<your-api-key>")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```
