Trengo

App · 19 actions

Manage support tickets and look up conversations, contacts, teams and calls.

Actions

ActionWhat it does
Assign ticketAssign ticket in Trengo.
Attach labelAttach label in Trengo.
Close ticketClose ticket in Trengo.
Create ticketCreate ticket in Trengo.
Detach labelDetach label in Trengo.
Get contactGet contact from Trengo.
Get ticketGet ticket from Trengo.
Get ticket messageGet ticket message from Trengo.
List callsList calls from Trengo.
List contactsList contacts from Trengo.
List labelsList labels from Trengo.
List quick repliesList quick replies from Trengo.
List teamsList teams from Trengo.
List ticket countsList ticket counts from Trengo.
List ticket messagesList ticket messages from Trengo.
List ticketsList tickets from Trengo.
List usersList users from Trengo.
List voice channelsList voice channels from Trengo.
Reopen ticketReopen ticket in Trengo.

Assign ticket

Assign ticket in Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id
TypetypetextRequired
Assignment type: `team` or `user`One of: team, user.
Personperson_idnumber
The user id, required if type is `user`
Assigned teamassigned_team_idnumber
The team id, required if type is `team`
Notenotetext
Optional assignment note

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

Attach label

Attach label in Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id
Labellabel_idnumberRequired
The label id

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

Close ticket

Close ticket in Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id
Ticket result IDticket_result_idnumber
Apply an optional ticket result

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

Create ticket

Create ticket in Trengo.

Inputs

Channel IDchannel_idnumberRequired
The channel id
Contact IDcontact_idtextRequired
The contact id
Subjectsubjecttext
Optional subject

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "created_at": "example",
    "id": 1,
    "status": "example"
  }
}

Detach label

Detach label in Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id
Labellabel_idnumberRequired
The label id

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

Get contact

Get contact from Trengo.

Inputs

Contact IDcontact_idnumberRequired
The contact id
Includeincludetext
Eager load relations (available: notes)

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "created_at": "example",
    "custom_field_data": {
      "stock_no": "example"
    },
    "email": "example",
    "id": 1,
    "name": "example",
    "phone": {},
    "updated_at": "example"
  }
}

Get ticket

Get ticket from Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "closed_at": "example",
    "contact_id": 1,
    "created_at": "example",
    "custom_field_values": [
      {
        "custom_field_id": 1,
        "field_name": "example",
        "value": "example"
      }
    ],
    "id": 1,
    "status": "example",
    "subject": "example",
    "team_id": 1,
    "user_id": 1
  }
}

Get ticket message

Get ticket message from Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket ID
Message IDmessage_idnumberRequired
The message ID

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

List calls

List calls from Trengo.

Inputs

Pagepagenumber
Optional, used to fetch the desired page.At least 1. Default: 1.
Statusesstatuseslist
Optional, calls will be filtered to match one of the statuses given in this field. Valid values are: `RINGING`, `IN_PROGRESS`, `COMPLETED`, `MISSED`, `VOICEMAIL`, `QUEUED`, `FAILED`, `STATUS_IVR`
Per pageper_pagenumber
This can used to configure the number of items per page (1-100)At least 1. Default: 50.

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

List contacts

List contacts from Trengo.

Inputs

Pagepagenumber
The current pageAt least 1. Default: 1.
Termtermtext
Search term to find a contact (works on email, phone number and name)
Includeincludelist
Optional additional data for a contact to be included in the response. Currently supported include items: *lastInteraction*

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "links": {
      "next": "example"
    }
  }
}

List labels

List labels from Trengo.

Inputs

Pagepagetext
Pagination

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "links": {
      "next": "example"
    }
  }
}

List quick replies

List quick replies from Trengo.

Inputs

Typetypetext
Filter by type (`SMS` [deprecated], `MESSAGING`, `EMAIL`)

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

List teams

List teams from Trengo.

Inputs

Pagepagetext
Pagination

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "links": {
      "next": "example"
    }
  }
}

List ticket counts

List ticket counts from Trengo.

Inputs

Channelschannelslist
Ids of channels to include in aggregates
Labelslabelslist
Ids of labels to include in aggregates
Usersuserslist
Ids of users to include in aggregates

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "channels": {
      "9467708": 1,
      "9468021": 1,
      "9468531": 1
    },
    "labels": {
      "413": 1,
      "418": 1,
      "424": 1,
      "428": 1
    },
    "statuses": {
      "assigned": 1,
      "open": 1
    },
    "users": {
      "1": 1,
      "2016914": 1
    }
  }
}

List ticket messages

List ticket messages from Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id
Pagepagenumber
PaginationAt least 1.

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "agent": {},
        "body_type": "TEXT",
        "contact": {},
        "created_at": "example",
        "file_caption": "example",
        "file_name": "example",
        "id": 1,
        "message": "example",
        "referral": {},
        "ticket_id": 1,
        "type": "INBOUND",
        "updated_at": "example"
      }
    ],
    "links": {
      "first": "example",
      "last": "example",
      "next": "example",
      "prev": "example"
    },
    "meta": {
      "current_page": 1,
      "from": 1,
      "path": "example",
      "per_page": 1,
      "to": 1
    }
  }
}

List tickets

List tickets from Trengo.

Inputs

Pagepagenumber
Pagination pageAt least 1. Default: 1.
Statusstatustext
Filter by status (`OPEN`, `ASSIGNED`,`CLOSED`,`INVALID`)One of: OPEN, ASSIGNED, CLOSED, INVALID.
Contact IDcontact_idnumber
Filter by a contact id
Usersuserslist
Filter by one or more user ids
Channelschannelslist
Filter by one or more channels ids
Labelslabelslist
Filter by one or more label ids
Last message typelast_message_typetext
Filter by the last message type (`INBOUND`,`OUTBOUND`)One of: INBOUND, OUTBOUND.
Sortsorttext
Orders by last messages at, 'date' orders at oldest firstOne of: -date, date. Default: -date.
Updated at gtupdated_at_gtdate and time
Filter by updated at (greater than)

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "status": "example",
        "updated_at": "example"
      }
    ],
    "links": {
      "next": "example"
    }
  }
}

List users

List users from Trengo.

Inputs

Pagepagetext
Pagination
Sortsorttext
Sort users by a specific column. Allowed options are `id` (default), `first_name`, `last_name`, `created_at`.One of: id, first_name (First name), last_name (Last name), created_at (Created at).

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "id": 1,
        "name": "example"
      }
    ],
    "links": {
      "next": "example"
    }
  }
}

List voice channels

List voice channels from Trengo.

Inputs

None.

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {
    "data": [
      {
        "id": 1,
        "phone": "example",
        "title": "example"
      }
    ]
  }
}

Reopen ticket

Reopen ticket in Trengo.

Inputs

Ticket IDticket_idnumberRequired
The ticket id

Outputs

dataobject
The response from Trengo.
Example output
{
  "data": {}
}

On this page