trengo_list_tickets
List tickets
List tickets (conversations) visible to the token's user, newest activity first, with channel and latest message. Filter by status, contact, assignee, channel, label, last message direction or update time. Trengo: GET /tickets.
輸入參數pagesortuserslabelsstatuschannelscontact_idupdated_at_gtlast_message_type
trengo_list_ticket_messages
List a ticket's messages
List the messages of one ticket — inbound, outbound and internal notes — with the contact or agent behind each. Trengo: GET /tickets/{ticket_id}/messages.
輸入參數pageticket_id必填
trengo_get_email_message
Get an email message
Fetch the full email behind one message of a ticket: original HTML body, from, to, subject and Message-ID. The message must be an email message. Trengo: GET /tickets/{ticket_id}/full_email_messages/{message_id}.
輸入參數ticket_id必填message_id必填
trengo_list_contacts
List or search contacts
List contacts, or search them by name, email or phone number. Trengo: GET /contacts.
輸入參數pageterminclude_last_interaction
trengo_get_contact
Get a contact
Fetch one contact with name, email, phone and custom field data, optionally with notes. Trengo: GET /contacts/{id}.
輸入參數contact_id必填include_notes
trengo_list_contact_groups
List contact groups
List the contact groups in the account — use their ids with trengo_update_contact. Trengo: GET /contact_groups.
輸入參數page
trengo_list_users
List users
List the agents (users) in the Trengo account — use their ids to assign tickets or filter. Trengo: GET /users.
輸入參數pagesort
trengo_list_teams
List teams
List the teams in the account — use their ids to assign tickets to a team. Trengo: GET /teams.
輸入參數page
trengo_list_labels
List labels
List the ticket labels (tags) in the account, for filtering tickets and reports. Trengo: GET /labels.
輸入參數page
trengo_list_ticket_results
List ticket results
List the ticket results (closing outcomes, e.g. 'Resolved', 'Sale') that can be applied when closing a ticket. Trengo: GET /ticket_results.
輸入參數page
trengo_list_custom_fields
List custom fields
List the custom fields defined for tickets, contacts and profiles. Trengo: GET /custom_fields.
輸入參數page
trengo_list_quick_replies
List quick replies
List the saved quick replies (canned responses), optionally only the messaging or email ones — useful for drafting consistent answers. Trengo: GET /quick_replies.
輸入參數type
trengo_get_reporting_metrics
Get reporting metrics
Aggregate support metrics over a period: new, created, assigned, closed and reopened tickets, average first response time and average total resolution time (seconds). Filter by team, channel, label or direction. Trengo: GET /reporting/metrics.
輸入參數metrics必填end_dateteam_idsdirectionlabel_idsstart_datechannel_ids
trengo_get_agent_performance
Get agent performance
Per-agent performance over a period: messages sent, notes, tickets assigned and closed, average first response and resolution times (with and without business hours). Trengo: GET /reporting/agent_performance.
輸入參數pageend_dateteam_idsuser_idslabel_idsstart_datechannel_ids
trengo_get_ticket_details_report
Get ticket details report
Per-ticket reporting rows: status, assignee, labels, first reply, first resolution and total resolution times (with and without business hours). Filter by team, channel, label, direction, status and created/closed/assigned date ranges; sort by a timing metric. For large accounts page with start_after_ticket_id instead of page. Trengo: GET /reporting/details/ticket.
輸入參數pagesort_bystatusesteam_idsdirectionlabel_idssort_orderchannel_idsclosed_end_datecreated_end_dateassigned_end_dateclosed_start_date另有 3 個
trengo_create_ticket
Create a ticket
Open a new ticket for an existing contact on a channel. Nothing is sent to the customer until you post a message with trengo_send_ticket_message. Trengo: POST /tickets.
輸入參數subjectchannel_id必填contact_id必填
trengo_assign_ticket
Assign a ticket
Assign a ticket to a user or a team, with an optional assignment note. Reversible by reassigning. Trengo: POST /tickets/{ticket_id}/assign.
輸入參數notetype必填team_iduser_idticket_id必填
trengo_close_ticket
Close a ticket
Close a ticket, optionally applying a ticket result (see trengo_list_ticket_results). Reversible with trengo_reopen_ticket. Trengo: POST /tickets/{ticket_id}/close.
輸入參數ticket_id必填ticket_result_id
trengo_reopen_ticket
Reopen a ticket
Reopen a closed ticket. Trengo: POST /tickets/{ticket_id}/reopen.
輸入參數ticket_id必填
trengo_send_ticket_message
Send a ticket message
Post a message on a ticket. With internal_note=true it is an internal note visible only to agents. OTHERWISE IT IS DELIVERED TO THE CUSTOMER on the ticket's channel (email, WhatsApp, chat...) and cannot be recalled — confirm the text first. Trengo: POST /tickets/{ticket_id}/messages.
輸入參數message必填subjectticket_id必填internal_noteattachment_ids
trengo_create_contact
Create a contact
Create a contact on a channel. The identifier is the contact's address on that channel: an email address for email channels, a phone number for WhatsApp/SMS/voice. Trengo: POST /channels/{channel_id}/contacts.
輸入參數namechannel_id必填identifier必填
trengo_update_contact
Update a contact
Rename a contact and/or set the contact groups it belongs to. contact_group_ids REPLACES the contact's groups. Trengo: PUT /contacts/{id}.
輸入參數namecontact_id必填contact_group_ids
trengo_create_board_card
Create a board card
Create a card (e.g. a deal or task) in a stage of a Trengo board. The board id is in the board's URL in Trengo. Trengo: POST /boards/{boardId}/cards.
輸入參數name必填board_id必填stage_id必填description
trengo_update_board_card
Update a board card
Partially update a board card: rename it, move it to another stage, or set its users (owners) and contacts (leads). user_ids / contact_ids replace the current sets. Trengo: PUT /boards/{boardId}/cards/{cardId}.
輸入參數namecard_id必填board_id必填stage_iduser_idscontact_ids