# Toggl Track — Pipedream Connect

> Time tracking software

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Client:
const result = await mcp.callTool({
  name: "toggl-create-client",
  arguments: {
    workspaceId: 10,
    name: "Name",
  },
})
```

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

## API proxy

For a Toggl Track 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.track.toggl.com/api/v9/me

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

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

## Actions (9)

### `toggl-create-client` — Create Client (Write)

Create a new client in Toggl. See the documentation

Full schema: https://pipedream.com/apps/toggl/actions/create-client.md

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

Create a new project in Toggl. See the documentation

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

### `toggl-get-current-time-entry` — Get Current Time Entry (Read-only)

Get the time entry that is running now. [See docs here]https://developers.track.toggl.com/docs/api/time_entries#get-get-current-time-entry)

Full schema: https://pipedream.com/apps/toggl/actions/get-current-time-entry.md

### `toggl-get-time-entries` — Get Time Entries (Read-only)

Get the last thousand time entries. See docs here

Full schema: https://pipedream.com/apps/toggl/actions/get-time-entries.md

### `toggl-get-time-entry` — Get Time Entry (Read-only)

Get details about a specific time entry. See docs here

Full schema: https://pipedream.com/apps/toggl/actions/get-time-entry.md

### `toggl-list-time-entry-id-options` — List Time Entry ID Options (Read-only)

Retrieves available options for the Time Entry ID field.

Full schema: https://pipedream.com/apps/toggl/actions/list-time-entry-id-options.md

### `toggl-list-workspace-id-options` — List Workspace ID Options (Read-only)

Retrieves available options for the Workspace ID field.

Full schema: https://pipedream.com/apps/toggl/actions/list-workspace-id-options.md

### `toggl-update-client` — Update Client (Write)

Updates an existing client in Toggl. See the documentation

Full schema: https://pipedream.com/apps/toggl/actions/update-client.md

### `toggl-update-project` — Update Project (Write)

Updates an existing project in Toggl. See the documentation

Full schema: https://pipedream.com/apps/toggl/actions/update-project.md

## Triggers (4)

### `toggl-new-start-time-entry` — New Start Time Entry (Instant) (Instant)

Emit new event when a time entry is started. See docs here

Full schema: https://pipedream.com/apps/toggl/triggers/new-start-time-entry.md

### `toggl-new-time-entry` — New Time Entry (Instant) (Instant)

Emit new event when a time entry is created. See docs here

Full schema: https://pipedream.com/apps/toggl/triggers/new-time-entry.md

### `toggl-new-update-time-entry` — New Update Time Entry (Instant) (Instant)

Emit new event when a time entry is updated. See docs here

Full schema: https://pipedream.com/apps/toggl/triggers/new-update-time-entry.md

### `toggl-new-webhook-event` — New Webhook Event (Instant) (Instant)

Emit new event on receive a webhook event. See docs here

Full schema: https://pipedream.com/apps/toggl/triggers/new-webhook-event.md

---

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