# Get timesheet count

`GET /api/timesheet/count`

Authentication: no security requirement declared for this operation.

Parameters:

- `relations` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `tenant` (query, object, optional)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

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

- `organization` (query, object, required)
  Type: object
  
  Schema: [Object](https://sourcey-gauzy.pages.dev/api-reference/models/object/index.md)

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

- `startDate` (query, string, date-time, optional)
  Type: string, date-time

- `endDate` (query, string, date-time, optional)
  Type: string, date-time

- `employeeIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `projectIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `taskIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `teamIds` (query, array, optional)
  Type: array
  
  Items:
    Type: string

- `status` (query, array, optional)
  Type: array
  
  Items:
    Type: string

Responses:

- 200: Timesheet count successfully retrieved

- 400: Invalid input, check the response body for more details

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/timesheet/count?organizationId=string'
```

### JavaScript

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

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

### Python

```python
import requests

response = requests.get('http://localhost:3000/api/timesheet/count?organizationId=string')
print(response.text)
```
