Greenhouse ACTION
Create Candidate
Creates a new candidate entry in Greenhouse. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Greenhouse account once, then configure and run Create Candidate from your backend or agent.
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: "greenhouse-create-candidate",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
greenhouse: { authProvisionId: "apn_xxxxxxx" },
userId: "User Id",
firstName: "First Name",
},
})
console.log(result)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": "greenhouse-create-candidate",
"configured_props": {
"greenhouse": { "authProvisionId": "apn_xxxxxxx" },
"userId": "User Id",
"firstName": "First Name"
}
}'// 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": "greenhouse",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "greenhouse-create-candidate",
arguments: {
userId: "User Id",
firstName: "First Name",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
userId User Id | string | The identification of the user who is registering. Required Dynamic |
firstName First Name | string | The person's first name. Required |
lastName Last Name | string | The person's last name. Required |
company Company | string | The person's company. Optional |
title Title | string | The person's title. Optional |
phoneNumbers Phone Numbers | string[] | A list of phone numbers. The phone number includes a plus sign (+), then country code, city code, and local phone number. Optional |
addressses Addressses | string[] | A list of addresses. Optional |
emailAddresses Email Addresses | string[] | A list of email addresses. Optional |
websiteAddresses Website Addresses | string[] | A list of website addresses . Optional |
socialMediaAddresses Social Media Addresses | string[] | A list of social media addresses. Optional |
tags Tags | string[] | A list of tags as strings. Optional |
customFields Custom Fields | object | An object containing new custom field values. The fields are the custom field Id. Optional |
recruiterId Recruiter Id | string | The ID of the recruiter - either id or email must be present. Optional Dynamic |
recruiterEmail Recruiter Email | string | The email of the recruiter - either id or email must be present. Optional |
coordinatorId Coordinator Id | string | The ID of the coordinator - either id or email must be present. Optional Dynamic |
coordinatorEmail Coordinator Email | string | The email of the coordinator - either id or email must be present. Optional |
educations Educations | string[] | A list of education records. Optional Dynamic |
employments Employments | string[] | A list of employment record objects. Format: {"company_name": "Greenhouse","title": "Engineer","start_date": "2001-09-15T00:00:00.000Z","end_date": "2004-05-15T00:00:00.000Z"} Optional |
activityFeedNotes Activity Feed Notes | string[] | A list of activity feed objects. Format: {"body": "John Locke was moved into Recruiter Phone Screen for Accounting Manager on 03/27/2014 by Boone Carlyle","visibility": "admin_only"}. Visibility can be one of: admin_only, private or public Optional |
jobIds Job Ids | string[] | An array of job ids to which the person will be assigned. Required Dynamic |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- greenhouse-create-candidate
- Version
- 0.0.2
- App
- Greenhouse
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗