View as Markdown
Donately icon

Donately ACTION

List Campaigns

List campaigns for an account. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Donately account once, then configure and run List Campaigns 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: "donately-list-campaigns",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    donately: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    status: "Status",
  },
})

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.

List Campaigns inputs
Property Type Description
accountId Account ID string
The ID of the account to get. Use the List Accounts action to get a list of account IDs.
Required
status Status string
Filter campaigns by status.
Optional
campaignType Campaign Type string
Campaign type filter (e.g. peer_to_peer, donation).
Optional
keyword Keyword string
Search by title or content.
Optional
hasFundraisers Has Fundraisers boolean
Filter to campaigns with fundraisers.
Optional
maxResults Max Results integer
The maximum number of results to get.
Optional
sort Sort string
Sort order. Either ASC or DESC.
Optional
orderBy Order By string
Field to sort by (e.g. created_at, amount_in_cents).
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
donately-list-campaigns
Version
0.0.1
App
Donately
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes