Trengo
App · 19 actions
Manage support tickets and look up conversations, contacts, teams and calls.
Actions
| Action | What it does |
|---|---|
| Assign ticket | Assign ticket in Trengo. |
| Attach label | Attach label in Trengo. |
| Close ticket | Close ticket in Trengo. |
| Create ticket | Create ticket in Trengo. |
| Detach label | Detach label in Trengo. |
| Get contact | Get contact from Trengo. |
| Get ticket | Get ticket from Trengo. |
| Get ticket message | Get ticket message from Trengo. |
| List calls | List calls from Trengo. |
| List contacts | List contacts from Trengo. |
| List labels | List labels from Trengo. |
| List quick replies | List quick replies from Trengo. |
| List teams | List teams from Trengo. |
| List ticket counts | List ticket counts from Trengo. |
| List ticket messages | List ticket messages from Trengo. |
| List tickets | List tickets from Trengo. |
| List users | List users from Trengo. |
| List voice channels | List voice channels from Trengo. |
| Reopen ticket | Reopen ticket in Trengo. |
Assign ticket
Assign ticket in Trengo.
Inputs
- Ticket ID
ticket_idnumberRequired - The ticket id
- Type
typetextRequired - Assignment type: `team` or `user`One of:
team,user. - Person
person_idnumber - The user id, required if type is `user`
- Assigned team
assigned_team_idnumber - The team id, required if type is `team`
- Note
notetext - Optional assignment note
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}Attach label
Attach label in Trengo.
Inputs
- Ticket ID
ticket_idnumberRequired - The ticket id
- Label
label_idnumberRequired - The label id
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}Close ticket
Close ticket in Trengo.
Inputs
- Ticket ID
ticket_idnumberRequired - The ticket id
- Ticket result ID
ticket_result_idnumber - Apply an optional ticket result
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}Create ticket
Create ticket in Trengo.
Inputs
- Channel ID
channel_idnumberRequired - The channel id
- Contact ID
contact_idtextRequired - The contact id
- Subject
subjecttext - 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 ID
ticket_idnumberRequired - The ticket id
- Label
label_idnumberRequired - The label id
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}Get contact
Get contact from Trengo.
Inputs
- Contact ID
contact_idnumberRequired - The contact id
- Include
includetext - 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 ID
ticket_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 ID
ticket_idnumberRequired - The ticket ID
- Message ID
message_idnumberRequired - The message ID
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}List calls
List calls from Trengo.
Inputs
- Page
pagenumber - Optional, used to fetch the desired page.At least 1. Default:
1. - Statuses
statuseslist - 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 page
per_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
- Page
pagenumber - The current pageAt least 1. Default:
1. - Term
termtext - Search term to find a contact (works on email, phone number and name)
- Include
includelist - 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
- Page
pagetext - 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
- Type
typetext - Filter by type (`SMS` [deprecated], `MESSAGING`, `EMAIL`)
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}List teams
List teams from Trengo.
Inputs
- Page
pagetext - 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
- Channels
channelslist - Ids of channels to include in aggregates
- Labels
labelslist - Ids of labels to include in aggregates
- Users
userslist - 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 ID
ticket_idnumberRequired - The ticket id
- Page
pagenumber - 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
- Page
pagenumber - Pagination pageAt least 1. Default:
1. - Status
statustext - Filter by status (`OPEN`, `ASSIGNED`,`CLOSED`,`INVALID`)One of:
OPEN,ASSIGNED,CLOSED,INVALID. - Contact ID
contact_idnumber - Filter by a contact id
- Users
userslist - Filter by one or more user ids
- Channels
channelslist - Filter by one or more channels ids
- Labels
labelslist - Filter by one or more label ids
- Last message type
last_message_typetext - Filter by the last message type (`INBOUND`,`OUTBOUND`)One of:
INBOUND,OUTBOUND. - Sort
sorttext - Orders by last messages at, 'date' orders at oldest firstOne of:
-date,date. Default:-date. - Updated at gt
updated_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
- Page
pagetext - Pagination
- Sort
sorttext - 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 ID
ticket_idnumberRequired - The ticket id
Outputs
dataobject- The response from Trengo.
Example output
{
"data": {}
}