# Trengo — Pipedream Connect

> Customer service software

- API slug: `trengo` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Help Desk & Support
- Website: https://trengo.com
- This page (HTML): https://pipedream.com/apps/trengo
- Tools: 34 actions · 10 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: trengo`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "trengo",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Assign Ticket:
const result = await mcp.callTool({
  name: "trengo-assign-ticket",
  arguments: {
    ticketId: 10,
    type: "Assignment Type",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Trengo endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://app.trengo.eu/api/v2/users

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAudHJlbmdvLmV1L2FwaS92Mi91c2Vycw?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "trengo-assign-ticket",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    trengo: { authProvisionId: "apn_xxxxxxx" },
    ticketId: 10,
    type: "Assignment Type",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (34)

### `trengo-assign-ticket` — Assign Ticket (Write)

Assign a Trengo ticket to a user or a team. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/assign-ticket.md

### `trengo-attach-label` — Attach Label (Write)

Attach a label to a ticket. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/attach-label.md

### `trengo-close-ticket` — Close Ticket (Write)

Close a ticket. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/close-ticket.md

### `trengo-create-contact` — Create Contact (Write)

Creates a contact. If a contact with given identifier already exists, returns it. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/create-contact.md

### `trengo-find-contacts` — Find Contacts (Read-only)

Finds contacts with the given term. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/find-contacts.md

### `trengo-get-article` — Get Article (Read-only)

Get a specific article. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-article.md

### `trengo-get-block` — Get Block (Read-only)

Get a specific block. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-block.md

### `trengo-get-category` — Get Category (Read-only)

Get a specific category. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-category.md

### `trengo-get-email-message-content` — Get Email Message Content (Read-only)

Retrieve the full email content for a specific ticket message. Use this when email_message.collapsed is true in the List Messages response. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-email-message-content.md

### `trengo-get-help-center` — Get Help Center (Read-only)

Get a specific help center. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-help-center.md

### `trengo-get-label` — Get Label (Read-only)

Get a label by ID. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-label.md

### `trengo-get-message` — Get Message (Read-only)

Get a message by ID. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-message.md

### `trengo-get-ticket` — Get Ticket (Read-only)

Get a specific ticket. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/get-ticket.md

### `trengo-list-all-blocks` — List All Blocks (Read-only)

List all blocks in a help center. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-all-blocks.md

### `trengo-list-all-categories` — List All Categories (Read-only)

List all categories in a help center. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-all-categories.md

### `trengo-list-all-quick-replies` — List All Quick Replies (Read-only)

List all quick replies. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-all-quick-replies.md

### `trengo-list-articles` — List Articles (Read-only)

List articles from a help center according to the specified criteria. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-articles.md

### `trengo-list-channel-id-options` — List Channel ID Options (Read-only)

Retrieves available options for the Channel ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-channel-id-options.md

### `trengo-list-help-center-id-options` — List Help Center ID Options (Read-only)

Retrieves available options for the Help Center ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-help-center-id-options.md

### `trengo-list-help-centers` — List Help Centers (Read-only)

List all help centers. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-help-centers.md

### `trengo-list-label-id-options` — List Label ID Options (Read-only)

Retrieves available options for the Label ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-label-id-options.md

### `trengo-list-labels` — List Labels (Read-only)

List all labels. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-labels.md

### `trengo-list-messages` — List Messages (Read-only)

List messages from a ticket. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-messages.md

### `trengo-list-team-id-options` — List Team ID Options (Read-only)

Retrieves available options for the Team ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-team-id-options.md

### `trengo-list-ticket-id-options` — List Ticket ID Options (Read-only)

Retrieves available options for the Ticket ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-ticket-id-options.md

### `trengo-list-ticket-result-id-options` — List Ticket Result ID Options (Read-only)

Retrieves available options for the Ticket Result ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-ticket-result-id-options.md

### `trengo-list-tickets` — List Tickets (Read-only)

List tickets according to the specified criteria. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/list-tickets.md

### `trengo-list-to-user-id-options` — List To User ID Options (Read-only)

Retrieves available options for the To User ID field.

Full schema: https://pipedream.com/apps/trengo/actions/list-to-user-id-options.md

### `trengo-log-a-voice-call` — Log A Voice Call (Write)

Logs a phone call from external VOIP applications, See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/log-a-voice-call.md

### `trengo-remove-label` — Remove Label (Write)

Remove a label from a ticket. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/remove-label.md

### `trengo-send-a-message` — Send A Message (Write)

This action can be used to easily send a message or an email without having to think about contacts or tickets, See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/send-a-message.md

### `trengo-send-a-team-chat-message` — Send A Team Chat Message (Write)

Send a message as a bot in the Team Chat, See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/send-a-team-chat-message.md

### `trengo-send-a-ticket-message` — Send A Ticket Message (Write)

Send a message to a ticket. See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/send-a-ticket-message.md

### `trengo-send-a-whatsapp-message-template` — Send A WhatsApp Message Template (Write)

Sends a WhatsApp message template, See the documentation

Full schema: https://pipedream.com/apps/trengo/actions/send-a-whatsapp-message-template.md

## Triggers (10)

### `trengo-new-inbound-message` — New Inbound Message Event (Instant) (Instant)

Emit new event when an inbound message is received. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/new-inbound-message.md

### `trengo-new-internal-note` — New Internal Note Event (Instant) (Instant)

Emit new event when an internal note is added. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/new-internal-note.md

### `trengo-new-outbound-message` — New Outbound Message Event (Instant) (Instant)

Emit new event when an outbound message sent. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/new-outbound-message.md

### `trengo-phone-call-ended` — New Phone Call Ended Event (Instant) (Instant)

Emit new event when a phone call ends. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/phone-call-ended.md

### `trengo-phone-call-missed` — New Phone Call Missed Event (Instant) (Instant)

Emit new event when an phone call missed. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/phone-call-missed.md

### `trengo-phone-call-started` — New Phone Call Started Event (Instant) (Instant)

Emit new event when a phone call starts. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/phone-call-started.md

### `trengo-ticket-label-added` — New Ticket Label Added Event (Instant) (Instant)

Emit new event when a ticket label is added. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/ticket-label-added.md

### `trengo-voice-call-recorded` — New Voice Call Recorded Event (Instant) (Instant)

Emit new event when a voice call is recorded. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/voice-call-recorded.md

### `trengo-ticket-closed` — Ticket Closed (Instant) (Instant)

Emit new event when a ticket is closed. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/ticket-closed.md

### `trengo-ticket-reopened` — Ticket Reopened (Instant) (Instant)

Emit new event when a ticket is reopened. See the documentation

Full schema: https://pipedream.com/apps/trengo/triggers/ticket-reopened.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
