# Teamwork Desk — Pipedream Connect

> Ticketing system designed to easily manage customer queries, saving you time and money.

- API slug: `teamwork_desk` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Help Desk & Support
- Website: https://www.teamwork.com/desk/
- This page (HTML): https://pipedream.com/apps/teamwork-desk
- Tools: 15 actions · 3 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: teamwork_desk`

```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": "teamwork_desk",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Customer:
const result = await mcp.callTool({
  name: "teamwork_desk-create-customer",
  arguments: {
    address: "Address",
    avatarURL: "Avatar URL",
  },
})
```

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

## API proxy

For a Teamwork Desk 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://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?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: "teamwork_desk-create-customer",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamwork_desk: { authProvisionId: "apn_xxxxxxx" },
    address: "Address",
    avatarURL: "Avatar URL",
  },
})
```

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

## Actions (15)

### `teamwork_desk-create-customer` — Create Customer (Write)

Create a new customer See the documentation

Full schema: https://pipedream.com/apps/teamwork-desk/actions/create-customer.md

### `teamwork_desk-create-ticket` — Create Ticket (Write)

Create a new ticket See the documentation

Full schema: https://pipedream.com/apps/teamwork-desk/actions/create-ticket.md

### `teamwork_desk-list-company-id-options` — List Company Options (Read-only)

Retrieves available options for the Company field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-company-id-options.md

### `teamwork_desk-list-customer-id-options` — List Customer Options (Read-only)

Retrieves available options for the Customer field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-customer-id-options.md

### `teamwork_desk-list-inbox-id-options` — List Inbox ID Options (Read-only)

Retrieves available options for the Inbox ID field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-inbox-id-options.md

### `teamwork_desk-list-inboxes-options` — List Inboxes Options (Read-only)

Retrieves available options for the Inboxes field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-inboxes-options.md

### `teamwork_desk-list-priority-id-options` — List Priority Id Options (Read-only)

Retrieves available options for the Priority Id field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-priority-id-options.md

### `teamwork_desk-list-source-id-options` — List Source Id Options (Read-only)

Retrieves available options for the Source Id field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-source-id-options.md

### `teamwork_desk-list-status-id-options` — List Status Id Options (Read-only)

Retrieves available options for the Status Id field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-status-id-options.md

### `teamwork_desk-list-tag-ids-options` — List Tags Options (Read-only)

Retrieves available options for the Tags field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-tag-ids-options.md

### `teamwork_desk-list-ticket-id-options` — List Ticket Id Options (Read-only)

Retrieves available options for the Ticket Id field.

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

### `teamwork_desk-list-type-id-options` — List Type Id Options (Read-only)

Retrieves available options for the Type Id field.

Full schema: https://pipedream.com/apps/teamwork-desk/actions/list-type-id-options.md

### `teamwork_desk-reply-to-ticket` — Reply To Ticket (Write)

Reply to a specific ticket See the documentation

Full schema: https://pipedream.com/apps/teamwork-desk/actions/reply-to-ticket.md

### `teamwork_desk-update-customer` — Update Customer (Write)

Update a specific customer See the documentation

Full schema: https://pipedream.com/apps/teamwork-desk/actions/update-customer.md

### `teamwork_desk-update-ticket` — Update Ticket (Write)

Update a specific ticket See the documentation

Full schema: https://pipedream.com/apps/teamwork-desk/actions/update-ticket.md

## Triggers (3)

### `teamwork_desk-customer-created` — New Customer Created (Instant)

Emit new event when a new customer is created.

Full schema: https://pipedream.com/apps/teamwork-desk/triggers/customer-created.md

### `teamwork_desk-customer-reply` — New Customer Reply (Instant)

Emit new event when a customer reply.

Full schema: https://pipedream.com/apps/teamwork-desk/triggers/customer-reply.md

### `teamwork_desk-ticket-created` — New Ticket Created (Instant)

Emit new event when a new ticket is created.

Full schema: https://pipedream.com/apps/teamwork-desk/triggers/ticket-created.md

---

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