Pipedrive ACTION
List Organizations
List organizations in your Pipedrive account. See the documentation
- Action
- Read only
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Pipedrive account once, then configure and run List Organizations 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: "pipedrive-list-organizations",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
pipedrive: { authProvisionId: "apn_xxxxxxx" },
filterId: 10,
organizationIds: ["Organization IDs"],
},
})
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": "pipedrive-list-organizations",
"configured_props": {
"pipedrive": { "authProvisionId": "apn_xxxxxxx" },
"filterId": 10,
"organizationIds": ["Organization IDs"]
}
}'// 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": "pipedrive",
},
},
},
)
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: "pipedrive-list-organizations",
arguments: {
filterId: 10,
organizationIds: ["Organization IDs"],
},
})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 |
|---|---|---|
filterId Filter ID | integer | The ID of the filter to apply to organizations Optional Dynamic |
organizationIds Organization IDs | string[] | The IDs of the organizations to list (up to 100). Filter ID takes precedence over Organization IDs when supplied. Optional Dynamic |
ownerId Owner ID | integer | ID of the user who owns the organization. If omitted, organizations owned by any user are returned. Filter ID takes precedence over Owner ID when supplied. Optional Dynamic |
updatedSince Updated Since | string | If set, only organizations with an update_time later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. Optional |
updatedUntil Updated Until | string | If set, only organizations with an update_time earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. Optional |
sortBy Sort By | string | The field to sort by Optional |
sortDirection Sort Direction | string | The direction to sort by Optional |
includeFields Include Fields | string[] | Additional fields to include in the response Optional |
customFields Custom Fields | string[] | Optional string array of custom field keys to include in the response. Optional |
includeOptionLabels Include Option Labels | boolean | When true, single-option and multi-option custom field values include the option labels alongside their IDs. Defaults to false. Optional |
includeLabels Include Labels | boolean | When true, the response includes an array of label objects ({ id, label, color }) for each organization. Defaults to false. Optional |
limit Limit | integer | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Maximum allowed value is 500. Optional |
cursor Cursor | string | For pagination, the cursor to the next page of results. If not provided, the first page will be returned. 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
- pipedrive-list-organizations
- Version
- 0.0.2
- App
- Pipedrive
- Authentication
- OAuth
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗