> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get multiple AiChannelSessions

> Retrieve multiple AiChannelSession records by their Ids in a single request.

Fetch several AiChannelSession records in a single request by passing their Ids as a comma-separated list enclosed in square brackets.

## Authentication

> [!NOTE]
>
> This endpoint requires OAuth2 authentication. Include a valid bearer token in the `Authorization` header.
> The authenticated user must be a full unrestricted administrator or have the **`AiChannelSession-Read`** role.

## Query Parameters

**id** `integer[]` *required*

A comma-separated list of AiChannelSession Ids enclosed in square brackets, e.g. `[123,456,789]`.

## Code Examples

```bash cURL theme={null}
curl -X GET \
  "https://spaces.nexudus.com/api/sys/aichannelsessions/?id=[87654321,87654322,87654323]" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

```javascript JavaScript theme={null}
const response = await fetch(
  'https://spaces.nexudus.com/api/sys/aichannelsessions/?id=[87654321,87654322,87654323]',
  {
    headers: {
      'Authorization': 'Bearer YOUR_TOKEN'
    }
  }
);

const records = await response.json();
```

```python Python theme={null}
import requests

response = requests.get(
    'https://spaces.nexudus.com/api/sys/aichannelsessions/',
    params={
        'id': '[87654321,87654322,87654323]'
    },
    headers={
        'Authorization': 'Bearer YOUR_TOKEN'
    }
)

records = response.json()
```

## Response

### 200

Returns an array of AiChannelSession records. Each record has the same structure as the response from the [Get one AiChannelSession](https://learn.nexudus.com/rest-api/sys/get-aichannelsessions-by-id.md) endpoint.

```json Example Response theme={null}
[
  {
    "BusinessId": 0,
    "CoworkerId": null,
    "CoworkerCoworkerType": null,
    "CoworkerFullName": null,
    "CoworkerMobilePhone": null,
    "CoworkerLandLine": null,
    "CoworkerBillingName": null,
    "CoworkerCompanyName": null,
    "CoworkerTeamNames": null,
    "Channel": "",
    "ExternalIdentifier": "",
    "ChatSession": null,
    "ExternalThreadId": null,
    "LastActivityUtc": null,
    "Subject": null,
    "EscalationStatus": 0,
    "Id": 87654321,
    "UpdatedOn": "2025-01-15T10:30:00Z",
    "CreatedOn": "2025-01-10T08:00:00Z",
    "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "UpdatedBy": "admin@example.com",
    "IsNew": false,
    "SystemId": null,
    "ToStringText": "AiChannelSession Example",
    "LocalizationDetails": null,
    "CustomFields": null
  }
]
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.