# Deskpro

> Combine support queues, ticket details and customer identities in service reports.

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

## Actions

### Get person

Read the customer or agent details associated with a ticket.

**Inputs**

- Person ID (`person_id`, number, required): Person ID from Get ticket.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "id": 201,
      "name": "Example Customer",
      "primary_email": "customer@example.com"
    }
  }
}
```

### Get ticket

Read full ticket details and optionally include related people or departments.

**Inputs**

- Ticket ID (`ticket_id`, number, required): Ticket ID from List tickets.
- Include (`include`, text): Comma-separated documented relations, such as department,person,category,product,workflow.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "agent": 301,
      "department": 1,
      "id": 101,
      "person": 201,
      "ref": "EXAMPLE-101",
      "status": "awaiting_agent",
      "subject": "Example support request"
    }
  }
}
```

### List tickets

Read one page of support tickets accessible to the key’s agent.

**Inputs**

- Page (`page`, number): Page number, starting at 1. At least 1.
- Count (`count`, number): Number of tickets to return on this page. At least 1.
- IDS (`ids`, text): Optional comma-separated ticket IDs.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 101,
        "person": 201,
        "subject": "Example support request"
      }
    ],
    "meta": {
      "pagination": {
        "current_page": 1,
        "per_page": 20,
        "total": 1,
        "total_pages": 1
      }
    }
  }
}
```
