View as Markdown
Greenhouse icon

Greenhouse ACTION

Add Attachment to Candidate

Adds an attachment to a specific candidate or prospect. 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 Add Attachment to 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-add-attachment-to-candidate",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    greenhouse: { authProvisionId: "apn_xxxxxxx" },
    userId: "User Id",
    candidateId: "Candidate ID",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Add Attachment to Candidate inputs
Property Type Description
userId User Id string
The identification of the user who is registering.
Required Dynamic
candidateId Candidate ID string
The ID of the candidate whose application or status changes.
Required Dynamic
filename Filename string
Name of the file.
Required
type Type string
The type of the file.
Required
file File or URL string
Provide a file URL or path to a file in the /tmp directory.
Required
contentType Content Type string
The content-type of the document you are sending. This should be included for encoded content.
Optional
syncDir SyncDir dir
Optional

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-add-attachment-to-candidate
Version
1.0.3
App
Greenhouse
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes