# Convenia — Pipedream Connect

> Convenia is a cloud people management software for small business that increase its efficiency and eliminating operational labor.

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Create Leave Of Absence For Employee:
const result = await mcp.callTool({
  name: "convenia-create-leave-of-absence-for-employee",
  arguments: {
    employeeId: "Employee ID",
    startDate: "Start Date",
  },
})
```

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

## API proxy

For a Convenia 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://public-api.convenia.com.br/api/v3/employees

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9wdWJsaWMtYXBpLmNvbnZlbmlhLmNvbS5ici9hcGkvdjMvZW1wbG95ZWVz?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: "convenia-create-leave-of-absence-for-employee",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    convenia: { authProvisionId: "apn_xxxxxxx" },
    employeeId: "Employee ID",
    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 (4)

### `convenia-create-leave-of-absence-for-employee` — Create Leave Of Absence For Employee (Write)

Creates a new leave of absence for an employee. See the documentation

Full schema: https://pipedream.com/apps/convenia/actions/create-leave-of-absence-for-employee.md

### `convenia-list-absence-motive-id-options` — List Absence Motive ID Options (Read-only)

Retrieves available options for the Absence Motive ID field.

Full schema: https://pipedream.com/apps/convenia/actions/list-absence-motive-id-options.md

### `convenia-list-absence-type-id-options` — List Absence Type ID Options (Read-only)

Retrieves available options for the Absence Type ID field.

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

### `convenia-list-employee-id-options` — List Employee ID Options (Read-only)

Retrieves available options for the Employee ID field.

Full schema: https://pipedream.com/apps/convenia/actions/list-employee-id-options.md

## Triggers (2)

### `convenia-new-dismissal` — New Dismissal (Polling)

Emit new event when an employee is dismissed.

Full schema: https://pipedream.com/apps/convenia/triggers/new-dismissal.md

### `convenia-new-vacation-request` — New Vacation Request (Polling)

Emit new event when there is a new vacation request at the company.

Full schema: https://pipedream.com/apps/convenia/triggers/new-vacation-request.md

---

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