# Get employee count in the same tenant

`GET /api/employee/count`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `tenantId` (query, string, optional)
  Type: string

- `organizationId` (query, string, required)
  Type: string

Responses:

- 200: Successfully retrieved the employee count.

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

- 401: Unauthorized

- 403: Forbidden

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

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/employee/count?organizationId=string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/employee/count?organizationId=string', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

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

### Python

```python
import requests

response = requests.get(
    'http://localhost:3000/api/employee/count?organizationId=string',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
