# Teamleader Focus — Pipedream Connect

> Customer management, project management and invoicing in one handy tool.

- API slug: `teamleader_focus` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Business Management
- Website: https://www.teamleader.eu/focus/
- This page (HTML): https://pipedream.com/apps/teamleader-focus
- Tools: 17 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: teamleader_focus`

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Contact:
const result = await mcp.callTool({
  name: "teamleader_focus-create-contact",
  arguments: {
    firstName: "First Name",
    lastName: "Last Name",
  },
})
```

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

## API proxy

For a Teamleader Focus 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.focus.teamleader.eu/users.me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZm9jdXMudGVhbWxlYWRlci5ldS91c2Vycy5tZQ?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: "teamleader_focus-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamleader_focus: { authProvisionId: "apn_xxxxxxx" },
    firstName: "First Name",
    lastName: "Last Name",
  },
})
```

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

## Actions (17)

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

Add a new contact. See the documentation

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

### `teamleader_focus-create-deal` — Create Deal (Write)

Add a new deal. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/actions/create-deal.md

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

Get details for a single ticket. See the documentation

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

### `teamleader_focus-get-ticket-message` — Get Ticket Message (Read-only)

Get a single message for a single ticket. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/actions/get-ticket-message.md

### `teamleader_focus-import-message` — Import Message (Write)

Import a message into a ticket. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/actions/import-message.md

### `teamleader_focus-list-business-type-options` — List Business Type Options (Read-only)

Retrieves available options for the Business Type field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-business-type-options.md

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

Retrieves available options for the Company field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-company-options.md

### `teamleader_focus-list-contact-options` — List Contact Options (Read-only)

Retrieves available options for the Contact field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-contact-options.md

### `teamleader_focus-list-invoice-options` — List Invoice Options (Read-only)

Retrieves available options for the Invoice field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-invoice-options.md

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

List messages for a single ticket. See the documentation

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

### `teamleader_focus-list-deal-phase-options` — List Phase Options (Read-only)

Retrieves available options for the Phase field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-deal-phase-options.md

### `teamleader_focus-list-deal-source-options` — List Source Options (Read-only)

Retrieves available options for the Source field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-deal-source-options.md

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

Retrieves available options for the Ticket ID field.

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

### `teamleader_focus-list-user-options` — List User Options (Read-only)

Retrieves available options for the User field.

Full schema: https://pipedream.com/apps/teamleader-focus/actions/list-user-options.md

### `teamleader_focus-update-company` — Update Company (Write)

Update a company. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/actions/update-company.md

### `teamleader_focus-update-contact` — Update Contact (Write)

Update a contact. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/actions/update-contact.md

### `teamleader_focus-update-invoice` — Update Invoice (Write)

Update a draft invoice. Booked invoices cannot be updated. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/actions/update-invoice.md

## Triggers (7)

### `teamleader_focus-new-company-added` — New Company Added (Instant) (Instant)

Emit new event for each company added. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-company-added.md

### `teamleader_focus-new-contact-added` — New Contact Added (Instant) (Instant)

Emit new event for each contact added. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-contact-added.md

### `teamleader_focus-new-deal-won` — New Deal Won (Instant) (Instant)

Emit new event for each deal won. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-deal-won.md

### `teamleader_focus-new-invoice-paid` — New Invoice Paid (Instant) (Instant)

Emit new event for each invoice paid. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-invoice-paid.md

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

Emit new event for each ticket created. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-ticket-created.md

### `teamleader_focus-new-ticket-message-added` — New Ticket Message Added (Instant) (Instant)

Emit new event for each message added to a ticket. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-ticket-message-added.md

### `teamleader_focus-new-ticket-updated` — New Ticket Updated (Instant) (Instant)

Emit new event for each ticket updated. See the documentation

Full schema: https://pipedream.com/apps/teamleader-focus/triggers/new-ticket-updated.md

---

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