# Send Template Signature — Boloforms

> Dispatch a predefined template to obtain a signature. See the documentation

- Key: `boloforms-send-template-signature`
- Type: Action (Write)
- Version: 0.0.3
- App: Boloforms (`boloforms`) — https://pipedream.com/apps/boloforms.md
- This page (HTML): https://pipedream.com/apps/boloforms/actions/send-template-signature
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/boloforms/actions/send-template-signature/send-template-signature.mjs

## Description

Dispatch a predefined template to obtain a signature. [See the documentation](https://help.boloforms.com/en/articles/8557564-sending-for-signing)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `documentId` | `string` | Yes | The ID of the document. Options are loaded from the connected account. |
| `subject` | `string` | Yes | The subject will be sent. |
| `message` | `string` | Yes | The message will be sent. |
| `receiversList` | `string[]` | Yes | A list of receiver objects. Format: {"name": "Chirag Gupta", "email": "support@boloforms.com", "roleTitle": "Junior Doctor", "roleColour": "#8FB1C8"} roleTitle has to be exactly the same as the role you added or it won't work properly. You can pass a hex code to give a color to your role, but it's not required. |
| `customVariables` | `string[]` | No | A list of custom variable objects. Format: {"varName": "[v1]", "varValue": "v1 value from api" }. The variable name has to be in square brackets. If you don't pass customVariables then the call will still work, Boloforms will pass each variable as empty. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_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": "boloforms",
      },
    },
  },
)

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: "boloforms-send-template-signature",
  arguments: {
    documentId: "Document ID",
    subject: "Subject",
  },
})
```

**TypeScript**

```ts
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: "boloforms-send-template-signature",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    boloforms: { authProvisionId: "apn_xxxxxxx" },
    documentId: "Document ID",
    subject: "Subject",
  },
})

console.log(result)
```

**cURL**

```bash
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": "boloforms-send-template-signature",
    "configured_props": {
      "boloforms": { "authProvisionId": "apn_xxxxxxx" },
      "documentId": "Document ID",
      "subject": "Subject"
    }
  }'
```

---

- App: https://pipedream.com/apps/boloforms.md · All apps: https://pipedream.com/apps
