# Teramind

> Manage employees, departments, computers, tasks and shared lists, and read alerts and activity from Teramind.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/teramind

## Actions

### Add shared list entries

Add entries, such as websites or keywords, to a shared list.

**Inputs**

- Shared list (`shared_list_id`, number, required): The shared list. Pick one, or use a shared list ID from an earlier step.
- Entries (`values`, list, required): The entries to add, one per item.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Create department

Create a department, optionally with its employees and managers.

**Inputs**

- Name (`name`, text, required): The department's name.
- Description (`description`, text): A description of the department.
- Employees (`employee_ids`, list): The employees in the department.
- Managers (`manager_ids`, list): Employees who manage the department, with full permissions over it.
- Keep employees during directory sync (`preserve_agents`, true/false): Keep the department's employees when Teramind syncs with your directory (Active Directory).

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "agent_ids": [
      1
    ],
    "deleted": 1,
    "department_id": 1,
    "description": "example",
    "guid": "example",
    "manager_ids": [
      1
    ],
    "name": "example",
    "preserve_agents": 1,
    "success": true,
    "time_created": "example"
  }
}
```

### Create employee

Add an employee to Teramind.

**Inputs**

- First name (`first_name`, text, required): The employee's first name. Once set, it can be changed but not cleared.
- Last name (`last_name`, text, required): The employee's last name. Once set, it can be changed but not cleared.
- Email (`email_address`, text, required): The employee's email address. They sign in to Teramind with it.
- Role (`role`, text): What the person can do in Teramind. Leave empty for Employee. One of: `0` (Employee), `1` (Administrator), `3` (Operational admin), `5` (Infrastructure admin).
- Password (`password`, text): A password for the employee's Teramind dashboard. Leave empty to set one later.
- Send welcome email (`send_email`, true/false): Email the employee their Teramind sign-in details.
- Department (`department_id`, number): The department. Pick one, or use a department ID from an earlier step.
- Hourly wage (`default_wage`, number): The employee's hourly wage. At least 0.
- Yearly wage (`yearly_wage`, number): The employee's yearly wage. At least 0.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "address": "example",
    "agent_id": 1,
    "default_wage": 1,
    "deleted": 1,
    "department_id": 1,
    "email": "example",
    "email_address": "example",
    "emergency_phone": "example",
    "first_name": "example",
    "flags": 1,
    "last_name": "example",
    "name": "example",
    "notes": "example",
    "position_id": 1,
    "role": 1,
    "salary_type": 1,
    "schedule_template_id": 1,
    "telephone": "example",
    "time_created": "example",
    "tracking_profile_id": 1,
    "yearly_wage": 1
  }
}
```

### Create shared list

Create an empty shared list that rules can use.

**Inputs**

- Name (`name`, text, required): The shared list's name.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "deleted": true,
    "hash": "example",
    "items": [
      {
        "shared_list_item_id": 1,
        "value": "example"
      }
    ],
    "name": "example",
    "shared_list_id": 1,
    "success": true,
    "type": 1
  }
}
```

### Create task

Create a time-tracking task employees can log time against.

**Inputs**

- Name (`name`, text, required): The task's name.
- Description (`description`, text): A description of the task.
- Parent task (`parent_id`, number): The task this one sits under. Leave empty for a top-level task.
- Trackable (`is_trackable`, true/false): Whether employees can track time against the task.
- Archived (`is_archived`, true/false): Whether the task is archived.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "assign": 1,
    "description": "example",
    "has_children": true,
    "integration_id": 1,
    "integration_object_id": 1,
    "is_archived": true,
    "is_trackable": true,
    "name": "example",
    "parent_id": 1,
    "task_id": 1
  }
}
```

### Delete department

Delete a department. Its employees stay in Teramind.

**Inputs**

- Department (`department_id`, number, required): The department. Pick one, or use a department ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "department_id": 1,
    "success": true
  }
}
```

### Delete shared list

Delete a shared list and its entries.

**Inputs**

- Shared list (`shared_list_id`, number, required): The shared list. Pick one, or use a shared list ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Get account

Get the Teramind account's settings: its name, time zone, currency and language.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "currency": "example",
    "default_task_id": 1,
    "language": "example",
    "name": "example",
    "timezone": "example",
    "week_start_day": 1
  }
}
```

### Get activity summary

Get time spent on each website and application, per employee and day, between two dates.

**Inputs**

- From (`from_date`, date, required): The first day, included.
- To (`to_date`, date, required): The last day, included.
- Employees (`agents`, list): Only these employees. Leave empty for all.
- Departments (`departments`, list): Only these departments. Leave empty for all.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "agent_id": 1,
      "app": true,
      "classify": 1,
      "date": "example",
      "idle": 1,
      "name": "example",
      "total": 1
    }
  ]
}
```

### Get computer

Get one computer's name, address, operating system and monitoring status.

**Inputs**

- Computer (`computer_id`, number, required): The computer. Pick one, or use a computer ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "client": "example",
    "computer_id": 1,
    "computer_uid": "example",
    "fqdn": "example",
    "ip": "example",
    "is_deleted": true,
    "is_monitored": true,
    "macs": [
      "example"
    ],
    "name": "example",
    "os": "example",
    "pinged_at": "example",
    "uninstall_pending": true,
    "update_pending": true,
    "uuid": "example"
  }
}
```

### Get department

Get one department with its employees and managers.

**Inputs**

- Department (`department_id`, number, required): The department. Pick one, or use a department ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "agent_ids": [
      1
    ],
    "deleted": 1,
    "department_id": 1,
    "description": "example",
    "guid": "example",
    "manager_ids": [
      1
    ],
    "name": "example",
    "preserve_agents": 1,
    "time_created": "example"
  }
}
```

### Get employee

Get one employee's name, email address and the extra details you choose.

**Inputs**

- Employee (`agent_id`, number, required): The employee. Pick one, or use an employee ID from an earlier step.
- Extra details (`fields`, list): Extra details to include, such as whether they are online. One or more of: `salary_type` (Salary type), `default_wage` (Default wage), `department_id` (Department), `role`, `flags`, `deleted`, `status`, `last_web_login` (Last web sign-in), `position`, `position_id` (Position ID), `ldap_attrs` (Directory (LDAP) attributes), `online`.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "agent_id": 1,
    "avatar": "example",
    "department_id": 1,
    "email_address": "example",
    "name": "example",
    "online": true,
    "role": 1,
    "status": "example"
  }
}
```

### Get shared list

Get a shared list with its entries.

**Inputs**

- Shared list (`shared_list_id`, number, required): The shared list. Pick one, or use a shared list ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "deleted": true,
    "hash": "example",
    "items": [
      {
        "shared_list_item_id": 1,
        "value": "example"
      }
    ],
    "name": "example",
    "shared_list_id": 1,
    "type": 1
  }
}
```

### Get task

Get one time-tracking task.

**Inputs**

- Task (`task_id`, number, required): The task. Pick one, or use a task ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "assign": 1,
    "description": "example",
    "has_children": true,
    "integration_id": 1,
    "integration_object_id": 1,
    "is_archived": true,
    "is_trackable": true,
    "name": "example",
    "parent_id": 1,
    "task_id": 1
  }
}
```

### List alerts

List the alerts Teramind's behavior rules raised between two times.

**Inputs**

- From (`period_start`, date and time, required): The start of the period.
- To (`period_end`, date and time, required): The end of the period.
- Employees (`agents`, list): Only these employees. Leave empty for all.
- Computers (`computers`, list): Only these computers. Leave empty for all.
- Departments (`departments`, list): Only these departments. Leave empty for all.
- Limit (`limit`, number): How many alerts to return. Teramind returns 50 when empty. At least 1.
- Offset (`offset`, number): How many alerts to skip, to read the next page. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "agent": {
        "id": 1,
        "name": "example"
      },
      "computer": {
        "id": 1,
        "name": "example"
      },
      "description": [
        {
          "caption": "example",
          "values": {}
        }
      ],
      "id": 1,
      "rule": {
        "group_id": 1,
        "group_name": "example",
        "id": 1,
        "name": "example",
        "type": "example"
      },
      "timestamp": "example"
    }
  ]
}
```

### List computers

List the computers Teramind's agent is installed on, with whether each is monitored.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "account_id": 1,
      "client": "example",
      "computer_id": 1,
      "computer_uid": "example",
      "fqdn": "example",
      "ip": "example",
      "is_deleted": true,
      "is_monitored": true,
      "macs": [
        "example"
      ],
      "name": "example",
      "os": "example",
      "pinged_at": "example",
      "uninstall_pending": true,
      "update_pending": true,
      "uuid": "example"
    }
  ]
}
```

### List departments

List the account's departments with their employees and managers.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "account_id": 1,
      "agent_ids": [
        1
      ],
      "deleted": 1,
      "department_id": 1,
      "description": "example",
      "guid": "example",
      "manager_ids": [
        1
      ],
      "name": "example",
      "preserve_agents": 1,
      "time_created": "example"
    }
  ]
}
```

### List employees

List every employee (Teramind calls them agents) in the account.

**Inputs**

- Include deleted employees (`show_deleted`, true/false): Include employees who have been deleted.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "account_id": 1,
      "address": "example",
      "agent_id": 1,
      "default_wage": 1,
      "deleted": 1,
      "department_id": 1,
      "email": "example",
      "email_address": "example",
      "emergency_phone": "example",
      "first_name": "example",
      "flags": 1,
      "last_name": "example",
      "name": "example",
      "notes": "example",
      "position_id": 1,
      "role": 1,
      "salary_type": 1,
      "schedule_template_id": 1,
      "telephone": "example",
      "time_created": "example",
      "tracking_profile_id": 1,
      "yearly_wage": 1
    }
  ]
}
```

### List shared lists

List the shared lists (of websites, applications, keywords and the like) your rules use.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "shared_list_id": 1,
      "size": 1,
      "type": 1
    }
  ]
}
```

### List tasks

List the account's time-tracking tasks.

**Inputs**

- Parent task (`parent_id`, number): Only the tasks under this task. Leave empty for all.
- Include archived (`show_archived`, true/false): Include archived tasks.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "assign": 1,
      "description": "example",
      "has_children": true,
      "integration_id": 1,
      "integration_object_id": 1,
      "is_archived": true,
      "is_trackable": true,
      "name": "example",
      "parent_id": 1,
      "task_id": 1
    }
  ]
}
```

### Remove shared list entries

Remove entries from a shared list, by the entry IDs Get shared list returns.

**Inputs**

- Entry IDs (`entry_ids`, list, required): The IDs of the entries to remove (shared_list_item_id from Get shared list).

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Turn off computer monitoring

Stop monitoring a computer.

**Inputs**

- Computer (`computer_id`, number, required): The computer. Pick one, or use a computer ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Turn on computer monitoring

Start monitoring a computer.

**Inputs**

- Computer (`computer_id`, number, required): The computer. Pick one, or use a computer ID from an earlier step.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Update department

Change a department's name, description, employees or managers. Employees and managers you give replace the current ones.

**Inputs**

- Department (`department_id`, number, required): The department. Pick one, or use a department ID from an earlier step.
- Name (`name`, text): The department's name.
- Description (`description`, text): A description of the department.
- Employees (`employee_ids`, list): The employees in the department.
- Managers (`manager_ids`, list): Employees who manage the department, with full permissions over it.
- Keep employees during directory sync (`preserve_agents`, true/false): Keep the department's employees when Teramind syncs with your directory (Active Directory).

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "agent_ids": [
      1
    ],
    "deleted": 1,
    "department_id": 1,
    "description": "example",
    "guid": "example",
    "manager_ids": [
      1
    ],
    "name": "example",
    "preserve_agents": 1,
    "success": true,
    "time_created": "example"
  }
}
```

### Update employee

Change an employee's name, department, wages or contact details. Only the fields you fill in change.

**Inputs**

- Employee (`agent_id`, number, required): The employee. Pick one, or use an employee ID from an earlier step.
- First name (`first_name`, text): The employee's first name. Once set, it can be changed but not cleared.
- Last name (`last_name`, text): The employee's last name. Once set, it can be changed but not cleared.
- Department (`department_id`, number): The department. Pick one, or use a department ID from an earlier step.
- Hourly wage (`default_wage`, number): The employee's hourly wage. At least 0.
- Yearly wage (`yearly_wage`, number): The employee's yearly wage. At least 0.
- Phone (`telephone`, text): The employee's phone number.
- Emergency phone (`emergency_phone`, text): The employee's emergency phone number.
- Address (`address`, text): The employee's address.
- Notes (`notes`, text): Notes about the employee.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "address": "example",
    "agent_id": 1,
    "default_wage": 1,
    "deleted": 1,
    "department_id": 1,
    "email": "example",
    "email_address": "example",
    "emergency_phone": "example",
    "first_name": "example",
    "flags": 1,
    "last_name": "example",
    "name": "example",
    "notes": "example",
    "position_id": 1,
    "role": 1,
    "salary_type": 1,
    "schedule_template_id": 1,
    "telephone": "example",
    "time_created": "example",
    "tracking_profile_id": 1,
    "yearly_wage": 1
  }
}
```

### Update task

Change a task's name, description or parent, or archive it. Only the fields you fill in change.

**Inputs**

- Task (`task_id`, number, required): The task. Pick one, or use a task ID from an earlier step.
- Name (`name`, text): The task's name.
- Description (`description`, text): A description of the task.
- Parent task (`parent_id`, number): The task this one sits under. Leave empty for a top-level task.
- Trackable (`is_trackable`, true/false): Whether employees can track time against the task.
- Archived (`is_archived`, true/false): Whether the task is archived.

**Outputs**

- `data` (object): The response from Teramind.

**Example output**

```json
{
  "data": {
    "assign": 1,
    "description": "example",
    "has_children": true,
    "integration_id": 1,
    "integration_object_id": 1,
    "is_archived": true,
    "is_trackable": true,
    "name": "example",
    "parent_id": 1,
    "task_id": 1
  }
}
```
