CONNECT APP
Build with fynk
AI Contract management Software
Business Management
- API key
MCP
Give your agent fynk tools
Every fynk action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's fynk account for each tool call — you store no tokens.
// 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": "fynk",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Create Contract from Template:
const result = await mcp.callTool({
name: "fynk-create-contract-from-template",
arguments: {
templateUuid: "Template",
name: "Name",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"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": "fynk",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Create Contract from Template:
result = await session.call_tool("fynk-create-contract-from-template", {
"templateUuid": "Template",
"name": "Name",
})API PROXY
Call the fynk API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the fynk API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://app.fynk.com/v1/api/me",
})
// Any allowed fynk endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# The path segment is the target URL, URL-safe base64 encoded:
# https://app.fynk.com/v1/api/me
curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcHAuZnluay5jb20vdjEvYXBpL21l?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
-H "Authorization: Bearer {access_token}" \
-H "x-pd-environment: production"SDK
Run fynk actions from your backend
Connect a user's fynk account once, then run Create Contract from Template on their behalf from your own code — TypeScript, Python, or plain HTTP.
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",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="fynk-create-contract-from-template",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"fynk": {"authProvisionId": "apn_xxxxxxx"},
"templateUuid": "Template",
"name": "Name",
},
)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": "fynk-create-contract-from-template",
"configured_props": {
"fynk": { "authProvisionId": "apn_xxxxxxx" },
"templateUuid": "Template",
"name": "Name"
}
}'TOOLS
fynk actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Create Contract from Template
actionCreate a new contract in Fynk based on an existing template. See the documentation.Writev0.0.1 -
List Document Options
actionRetrieves available options for the Document field.Read-onlyv0.0.1 -
List Tags Options
actionRetrieves available options for the Tags field.Read-onlyv0.0.1 -
List Template Options
actionRetrieves available options for the Template field.Read-onlyv0.0.1 -
Move Contract Stage
actionMove a contract forward in Fynk's lifecycle. See documentation pages move document to review stage and move document to signing stage.Writev0.0.1 -
Update Contract Metadata
actionUpdate metadata values or dynamic fields associated with a contract in Fynk. See the documentation.Writev0.0.1 -
Update Contract Party
actionUpdate the details of a party associated with a contract in Fynk. See the documentation.Writev0.0.1
No fynk triggers are available yet.
- App slug
- fynk
- Authentication
- API key
- Categories
- Business Management
- Actions
- 7
- Triggers
- 0
- API proxy
- Available