# Timetastic

> Read employee directories, departments and leave categories to reconcile HR systems. Read-only beta integration.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/timetastic

## Actions

### List departments

List departments using the documented API. Returns the records visible to this API credential.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Timetastic.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "Operations",
      "userCount": 3
    }
  ]
}
```

### List leave types

List leave types using the documented API. Returns the records visible to this API credential.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Timetastic.

**Example output**

```json
{
  "data": [
    {
      "id": 1,
      "name": "Holiday"
    }
  ]
}
```

### List users

List users using the documented API. Returns the records visible to this API credential.

**Inputs**

- Department ID (`department_id`, number): Department id
- Include archived (`include_archived`, true/false): Include archived

**Outputs**

- `data` (list): The response from Timetastic.

**Example output**

```json
{
  "data": [
    {
      "email": "employee@example.com",
      "firstname": "Example",
      "id": 1,
      "surname": "Employee"
    }
  ]
}
```
