CONNECT APP
Build with Buddee
HR & Payroll for SMEs, hassle-free!
Human Resources
- OAuth
MCP
Give your agent Buddee tools
Every Buddee action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Buddee account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "buddee",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Create Employee:
const result = await mcp.callTool({
name: "buddee-create-employee",
arguments: {
companyId: "Company ID",
employmentDate: "Employment Date",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{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": "buddee",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Create Employee:
result = await session.call_tool("buddee-create-employee", {
"companyId": "Company ID",
"employmentDate": "Employment Date",
})SDK
Run Buddee actions from your backend
Connect a user's Buddee account once, then run Create Employee on their behalf from your own code — TypeScript, Python, or plain HTTP.
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: "buddee-create-employee",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
buddee: { authProvisionId: "apn_xxxxxxx" },
companyId: "Company ID",
employmentDate: "Employment Date",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="buddee-create-employee",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"buddee": {"authProvisionId": "apn_xxxxxxx"},
"companyId": "Company ID",
"employmentDate": "Employment Date",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "buddee-create-employee",
"configured_props": {
"buddee": { "authProvisionId": "apn_xxxxxxx" },
"companyId": "Company ID",
"employmentDate": "Employment Date"
}
}'TOOLS
Buddee actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Create Employee
actionCreate a new employee record. See the documentationWritev0.0.2 -
Create Leave Request
actionCreates a new leave request. See the documentationWritev0.0.2 -
List Company ID Options
actionRetrieves available options for the Company ID field.Read-onlyv0.0.1 -
List Cost Center ID Options
actionRetrieves available options for the Cost Center ID field.Read-onlyv0.0.1 -
List Cost Unit ID Options
actionRetrieves available options for the Cost Unit ID field.Read-onlyv0.0.1 -
List Department ID Options
actionRetrieves available options for the Department ID field.Read-onlyv0.0.1 -
List Employee ID Options
actionRetrieves available options for the Employee ID field.Read-onlyv0.0.1 -
List Employees
actionRetrieve a complete list of employees. See the documentationRead-onlyv0.0.2 -
List Job ID Options
actionRetrieves available options for the Job ID field.Read-onlyv0.0.1 -
List Leave Requests
actionRetrieves all leave requests. See the documentationRead-onlyv0.0.2 -
List Leave Type ID Options
actionRetrieves available options for the Leave Type ID field.Read-onlyv0.0.1 -
List Location ID Options
actionRetrieves available options for the Location ID field.Read-onlyv0.0.1 -
List Project ID Options
actionRetrieves available options for the Project ID field.Read-onlyv0.0.1 -
List Time Registration Type ID Options
actionRetrieves available options for the Time Registration Type ID field.Read-onlyv0.0.1 -
List Time Registrations
actionGet all time tracking records, See the documentationRead-onlyv0.0.2
-
Employee Updated
triggerEmit new event when an employee is updated in the system. See the documentationv0.0.1 -
New Employee Created
triggerEmit new event when a new employee is added to the system. See the documentationv0.0.1 -
New Leave Request Created
triggerEmit new event when a new leave request is created in the system. See the documentationv0.0.1 -
New Time Registration Created
triggerEmit new event when a new time registration is created in the system. See the documentationv0.0.1
- App slug
- buddee
- Authentication
- OAuth
- Categories
- Human Resources
- Actions
- 15
- Triggers
- 4
- API proxy
- Not available