# Get soundshot count in the same tenant

`GET /api/plugins/soundshots/count`

Authentication: no security requirement declared for this operation.

Parameters:

- `tenantId` (query, string, required) - The ID of the tenant.
  Type: string
  
  Example:
  
  ```json
  "d3b07384-d9a0-4d5f-bf6d-f1b5b71e9a37"
  ```

- `organizationId` (query, string, required) - The ID of the organization within the tenant.
  Type: string
  
  Example:
  
  ```json
  "a9e3fbc9-d0b7-4e85-b6f2-2eaf3a5d72dc"
  ```

- `startDate` (query, string, date-time, optional) - The start date for filtering soundshot records. Can be provided as a string or a Date object.
  Type: string, date-time; nullable
  
  Example:
  
  ```json
  "2023-01-01T00:00:00.000Z"
  ```

- `endDate` (query, string, date-time, optional) - The end date for filtering soundshot records. Can be provided as a string or a Date object.
  Type: string, date-time; nullable
  
  Example:
  
  ```json
  "2023-12-31T23:59:59.999Z"
  ```

Responses:

- 200: Successfully retrieved the soundshot count.

- 400: Invalid query parameters. Please check your input.

- 500: An error occurred while retrieving the soundshot count.

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/plugins/soundshots/count?tenantId=d3b07384-d9a0-4d5f-bf6d-f1b5b71e9a37&organizationId=a9e3fbc9-d0b7-4e85-b6f2-2eaf3a5d72dc'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugins/soundshots/count?tenantId=d3b07384-d9a0-4d5f-bf6d-f1b5b71e9a37&organizationId=a9e3fbc9-d0b7-4e85-b6f2-2eaf3a5d72dc', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('http://localhost:3000/api/plugins/soundshots/count?tenantId=d3b07384-d9a0-4d5f-bf6d-f1b5b71e9a37&organizationId=a9e3fbc9-d0b7-4e85-b6f2-2eaf3a5d72dc')
print(response.text)
```
