# List communications

Returns a paginated list of Communications for the specified site. Supports filtering and sorting.

Endpoint: GET /site/{siteId}/ahds/v1/communication
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

## Query parameters:

  - `page` (number)
    Page number (0-indexed)

  - `pageSize` (number)
    Number of items per page

  - `sortBy` (string)
    Field to sort by

  - `sortOrder` (string)
    Sort order

  - `associatedResourceId` (string)
    Identifier of the resource this communication is associated with.

  - `associatedResourceType` (string)
    Type of resource this communication is associated with (e.g. Contact, Animal, Consult).

  - `communicatingResourceId` (string)
    Identifier of the communicating party when different from associatedResourceId.

  - `communicatingResourceType` (string)
    Type of the communicating party (e.g. Contact, Animal) when different from associatedResourceType.

  - `contactDetailTypeId` (string)
    Identifier of the ContactDetailType used to send the communication.

  - `content` (string)
    Body/content of the communication.

  - `contentFormat` (string)
    Format of the communication content.

  - `destination` (string)
    Destination address/identifier for the communication, format defined by contactDetailTypeId.

  - `direction` (string)
    Direction of the communication relative to the practice.

  - `isActive` (boolean)
    Whether the communication record is active.

  - `origin` (string)
    Origin address/identifier for the communication, if available.

  - `status` (string)
    Delivery or processing status of the communication.

  - `subject` (string)
    Subject or title of the communication.

## Response 200:

  - `200` (unknown)
    Paginated list of Communications

## Response 401:

  - `401` (unknown)
    Unauthorized

