View as Markdown
Nango icon

Nango ACTION

Create Integration

Create a new Integration. See the Documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Nango account once, then configure and run Create Integration 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: "nango-create-integration",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nango: { authProvisionId: "apn_xxxxxxx" },
    oauthClientId: "Client ID",
    oauthClientSecret: "Client Secret",
  },
})

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.

Create Integration inputs
Property Type Description
oauthClientId Client ID string
Obtain the Client ID on the developer portal of the Integration Provider.
Required
oauthClientSecret Client Secret string
Obtain the Client Secret on the developer portal of the Integration Provider.
Required
provider Provider string
The Provider of the Integration.
Required Dynamic
providerConfigKey Integration Unique Key string
Choose a unique key for your integration. It can be the same as the Integration Provider (e.g. github, airtable).
Required
oauthScopes OAuth Scopes string[]
The OAuth Scopes of the Integration. The list of scope should be found in the documentation of the external provider.
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
nango-create-integration
Version
0.0.2
App
Nango
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes