# OneDesk — Pipedream Connect

> OneDesk is powerful helpdesk and project management software in a single application. Support your customers and manage projects in one place.

- API slug: `onedesk` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Productivity
- Website: https://www.onedesk.com/
- This page (HTML): https://pipedream.com/apps/onedesk
- Tools: 9 actions · 7 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: onedesk`

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Item:
const result = await mcp.callTool({
  name: "onedesk-create-item",
  arguments: {
    name: "Name",
    type: "Item Type",
  },
})
```

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

## API proxy

For a OneDesk 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.onedesk.com/rest/public/organization/profileAndPolicy

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAub25lZGVzay5jb20vcmVzdC9wdWJsaWMvb3JnYW5pemF0aW9uL3Byb2ZpbGVBbmRQb2xpY3k?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: "onedesk-create-item",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    onedesk: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    type: "Item Type",
  },
})
```

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

## Actions (9)

### `onedesk-create-item` — Create Item (Write)

Creates a new item. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/create-item.md

### `onedesk-create-message` — Create Message (Write)

Creates a message or comment. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/create-message.md

### `onedesk-create-project` — Create Project (Write)

Creates a project/space. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/create-project.md

### `onedesk-create-user` — Create User (Write)

Creates a user or a customer. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/create-user.md

### `onedesk-find-item` — Find Item (Read-only)

Search for an existing item. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/find-item.md

### `onedesk-find-project` — Find Project (Read-only)

Search for a project/space by name or ID. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/find-project.md

### `onedesk-list-item-type-options` — List Item Type Options (Read-only)

Retrieves available options for the Item Type field.

Full schema: https://pipedream.com/apps/onedesk/actions/list-item-type-options.md

### `onedesk-list-user-type-options` — List User Type Options (Read-only)

Retrieves available options for the User Type field.

Full schema: https://pipedream.com/apps/onedesk/actions/list-user-type-options.md

### `onedesk-update-item` — Update Item (Write)

Updates an existing item. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/actions/update-item.md

## Triggers (7)

### `onedesk-new-item-created` — New Item Created (Polling)

Emit new event when a new item is created. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/triggers/new-item-created.md

### `onedesk-new-item-updated` — New Item Updated (Polling)

Emit new event when an item is updated. See the docs

Full schema: https://pipedream.com/apps/onedesk/triggers/new-item-updated.md

### `onedesk-new-project-created` — New Project Created (Polling)

Emit new event when a new project is created. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/triggers/new-project-created.md

### `onedesk-new-project-updated` — New Project Updated (Polling)

Emit new event when a project is updated. See the docs

Full schema: https://pipedream.com/apps/onedesk/triggers/new-project-updated.md

### `onedesk-new-public-message-created` — New Public Message Created (Polling)

Emit new event when a new public message is created. See the docs

Full schema: https://pipedream.com/apps/onedesk/triggers/new-public-message-created.md

### `onedesk-new-timesheet-created` — New Timesheet Created (Polling)

Emit new event when a new timesheet is created. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/triggers/new-timesheet-created.md

### `onedesk-new-user-created` — New User Created (Polling)

Emit new event when a new user is created. See the documentation.

Full schema: https://pipedream.com/apps/onedesk/triggers/new-user-created.md

---

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