View as Markdown
fynk icon

fynk ACTION

Create Contract from Template

Create a new contract in Fynk based on an existing template. See the documentation.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's fynk account once, then configure and run Create Contract from Template 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: "fynk-create-contract-from-template",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    fynk: { authProvisionId: "apn_xxxxxxx" },
    templateUuid: "Template",
    name: "Name",
  },
})

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 Contract from Template inputs
Property Type Description
templateUuid Template string
The template to use as a basis for the new document
Required Dynamic
name Name string
The new document's name. If omitted, the name of the template will be used as the new document's name
Optional
ownerEmails Owner Emails string[]
Email addresses of the user(s) from your account who should be given ownership of the new document
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
fynk-create-contract-from-template
Version
0.0.1
App
fynk
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes