# Bonusly — Pipedream Connect

> Reimagine Employee Recognition and Rewards

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Get Company Participation Report:
const result = await mcp.callTool({
  name: "bonusly-get-company-participation-report",
  arguments: {
    reportView: "Report View",
    startDate: "Start Date",
  },
})
```

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

## API proxy

For a Bonusly 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://bonus.ly/api/v1/users/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9ib251cy5seS9hcGkvdjEvdXNlcnMvbWU?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: "bonusly-get-company-participation-report",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bonusly: { authProvisionId: "apn_xxxxxxx" },
    reportView: "Report View",
    startDate: "Start Date",
  },
})
```

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

## Actions (9)

### `bonusly-get-company-participation-report` — Get Company Participation Report (Read-only)

Return company-level recognition participation analytics - giving/receiving rates by group (department, location, etc.) or by manager and team, for a given date range. See the documentation

Full schema: https://pipedream.com/apps/bonusly/actions/get-company-participation-report.md

### `bonusly-give-bonus` — Give Bonus (Write)

Send recognition (a bonus) to one or more colleagues on behalf of the authenticated caller. Do not include @mentions or the point amount in the reason yourself - Bonusly synthesizes those from recipients and amount automatically. See the documentation

Full schema: https://pipedream.com/apps/bonusly/actions/give-bonus.md

### `bonusly-list-departments` — List Departments (Read-only)

List the distinct departments configured for users in the authenticated caller's company, with a user count for each. Call this first to discover the exact department names accepted by List Users In Department, which matches exactly and returns nothing for a misspelled or differently-cased name…

Full schema: https://pipedream.com/apps/bonusly/actions/list-departments.md

### `bonusly-list-locations` — List Locations (Read-only)

List the distinct locations configured for users in the authenticated caller's company, with a user count for each. Call this first to discover the exact location names accepted by List Users In Location, which matches exactly and returns nothing for a misspelled or differently-cased name. See the…

Full schema: https://pipedream.com/apps/bonusly/actions/list-locations.md

### `bonusly-list-reward-redemptions` — List Reward Redemptions (Read-only)

Return paginated reward redemption records for the caller's company, with optional filtering by user email, date range, and fulfillment status. This is a company-wide admin report, not just the caller's own redemptions. See the documentation

Full schema: https://pipedream.com/apps/bonusly/actions/list-reward-redemptions.md

### `bonusly-list-top-level-users` — List Top-Level Users (Read-only)

List the users in the authenticated caller's company who have no manager - the roots of the org chart, typically executives. Use this to answer who sits at the top of the company, or as a starting point when you have no other identifier to work from. Takes no required input. See the documentation

Full schema: https://pipedream.com/apps/bonusly/actions/list-top-level-users.md

### `bonusly-list-users-in-department` — List Users In Department (Read-only)

List the users in the authenticated caller's company who belong to a specific department. Use this to enumerate a department's roster - unlike Search Users, no search term is required, so it returns every member of the department. See the documentation

Full schema: https://pipedream.com/apps/bonusly/actions/list-users-in-department.md

### `bonusly-list-users-in-location` — List Users In Location (Read-only)

List the users in the authenticated caller's company who belong to a specific location. Use this to enumerate a location's roster - unlike Search Users, no search term is required, so it returns everyone based at the location. See the documentation

Full schema: https://pipedream.com/apps/bonusly/actions/list-users-in-location.md

### `bonusly-search-users` — Search Users (Read-only)

Search users in the authenticated caller's company by name or email. This is a search, not a full company directory dump - a Search Term is required and matches on name or email. To list users without a search term, use List Users In Department, List Users In Location, or List Top-Level Users…

Full schema: https://pipedream.com/apps/bonusly/actions/search-users.md

---

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