# List access requests (admin queue, or your own)

> Source: https://elaichi.ai/docs/api-reference/access-requests/access-request/listaccessrequests/

`GET /access-request`

Resource: **Access Request** · API: **Access requests**

## Query parameters

- **`q`** _(string)_
  Case-insensitive substring match on the requested tool name or the requester’s note. LIKE wildcards are matched literally. Max 200 characters.
- **`status`** _(string)_
  Filter by status. Defaults to `pending`. Any other value is a 400.
  Allowed: `pending`, `approved`, `denied`, `withdrawn`, `all`
- **`mine`** _(string)_
  Set `true` to list only the requests you filed (no permission required, self-view rows). Omitted or `false` means the org-wide admin queue, which requires `member:manage`. Any other value is a 400, so a typo cannot silently fall through to the queue.
  Allowed: `true`, `false`, `1`, `0`

## Response body

- **`result`** _(array<object>)_
- **`next_cursor`** _(string,null)_
- **`prev_cursor`** _(string,null)_

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/access-request' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/access-request', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

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

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/access-request"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

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