# Glia

> Connect Glia to automate help desk workflows.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/glia

## Actions

### Get engagement

Get engagement.

**Inputs**

- Engagement id (`engagement_id`, text, required): Engagement id to use for this request.

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {
    "id": "example-id",
    "name": "Example"
  }
}
```

### Get engagement duration

Get engagement duration.

**Inputs**

- Start date (`start_date`, date and time, required): Start date to use for this request.
- End date (`end_date`, date and time, required): End date to use for this request.
- Dimensions (`dimensions`, list): Dimensions to use for this request. One or more of: `site_id` (Site id), `operator_id` (Operator id), `queue_id` (Queue id), `type`, `highest_operator_media` (Highest operator media), `destination_queue_id` (Destination queue id), `outcome`.
- Granularity (`granularity`, text): Granularity to use for this request. One of: `all`, `hour`, `day`.
- Query type (`query_type`, text): Query type to use for this request. One of: `group_by` (Group by).

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {}
}
```

### Get operator online duration

Get operator online duration.

**Inputs**

- Start date (`start_date`, date and time, required): Start date to use for this request.
- End date (`end_date`, date and time, required): End date to use for this request.
- Dimensions (`dimensions`, list): Dimensions to use for this request. One or more of: `site_id` (Site id), `operator_id` (Operator id), `queue_id` (Queue id), `type`, `highest_operator_media` (Highest operator media), `destination_queue_id` (Destination queue id), `outcome`.
- Granularity (`granularity`, text): Granularity to use for this request. One of: `all`, `hour`, `day`.
- Query type (`query_type`, text): Query type to use for this request. One of: `group_by` (Group by).

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {}
}
```

### Get post engagement duration

Get post engagement duration.

**Inputs**

- Start date (`start_date`, date and time, required): Start date to use for this request.
- End date (`end_date`, date and time, required): End date to use for this request.
- Dimensions (`dimensions`, list): Dimensions to use for this request. One or more of: `site_id` (Site id), `operator_id` (Operator id), `queue_id` (Queue id), `type`, `highest_operator_media` (Highest operator media), `destination_queue_id` (Destination queue id), `outcome`.
- Granularity (`granularity`, text): Granularity to use for this request. One of: `all`, `hour`, `day`.
- Query type (`query_type`, text): Query type to use for this request. One of: `group_by` (Group by).

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {}
}
```

### Get queue wait duration

Get queue wait duration.

**Inputs**

- Start date (`start_date`, date and time, required): Start date to use for this request.
- End date (`end_date`, date and time, required): End date to use for this request.
- Dimensions (`dimensions`, list): Dimensions to use for this request. One or more of: `site_id` (Site id), `operator_id` (Operator id), `queue_id` (Queue id), `type`, `highest_operator_media` (Highest operator media), `destination_queue_id` (Destination queue id), `outcome`.
- Granularity (`granularity`, text): Granularity to use for this request. One of: `all`, `hour`, `day`.
- Query type (`query_type`, text): Query type to use for this request. One of: `group_by` (Group by).

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {}
}
```

### Get site

Get site.

**Inputs**

- Site (`site_id`, text, required): Site id to use for this request.

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {
    "id": "example-id",
    "name": "Example"
  }
}
```

### List engagements

List engagements.

**Inputs**

- Page (`page`, number): Page to use for this request. At least 1.
- Per page (`per_page`, number): Per page to use for this request. From 1 to 1000.
- Site ids (`site_ids`, list): Site ids to use for this request.
- Start date (`start_date`, date and time): Start date to use for this request.
- End date (`end_date`, date and time): End date to use for this request.

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {
    "engagements": [],
    "next_page": "example"
  }
}
```

### List operators

List operators.

**Inputs**

- Page (`page`, number): Page to use for this request. At least 1.
- Per page (`per_page`, number): Per page to use for this request. From 1 to 1000.
- Site ids (`site_ids`, list): Site ids to use for this request.
- Include disabled (`include_disabled`, true/false): Include disabled to use for this request.

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {
    "next_page": "example",
    "operators": []
  }
}
```

### List queues

List queues.

**Inputs**

- Page (`page`, number): Page to use for this request. At least 1.
- Per page (`per_page`, number): Per page to use for this request. From 1 to 1000.
- Site ids (`site_ids`, list): Site ids to use for this request.

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {
    "next_page": "example",
    "queues": []
  }
}
```

### List sites

List sites.

**Inputs**: None.

**Outputs**: Result returned by the service.

- `response` (object): Complete service response, including pagination.

**Example output**

```json
{
  "response": {
    "next_page": "example",
    "sites": []
  }
}
```
