# Send Sign Request — Stiply

> Send a sign request to a recipient. See the documentation

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

## Description

Send a sign request to a recipient. [See the documentation](https://app.stiply.nl/api-documentation/v2#tag/sign-requests/operation/SendSignRequest)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `title` | `string` | Yes | The title of the sign request |
| `fileUrls` | `string[]` | Yes | The URLs of the files to be signed |
| `signers` | `string[]` | Yes | An array of objects representing the signers of the sign request. Example: [{ "email": "test@example.com", "name": "John Doe" }]. See the documentation for more information about signer properties. |
| `subject` | `string` | No | The subject of the e-mail to the signers |
| `message` | `string` | No | The message to the signers. The message can have some basic HTML tags. |
| `signingSequenceType` | `string` | No | Choose if all signers can sign in parallel or sequential |
| `term` | `string` | No | 2 digit code representing the sign term (1d = one day, 2w = two weeks, 3m = three months). When omitted, the account's configured default term will be used. |
| `externalKey` | `string` | No | A key for your internal use so you don't have to save the Stiply sign request key in your local database. However, your external key has to be unique. |
| `comment` | `string` | No | A comment for internal use |
| `callbackUrl` | `string` | No | An URL to be called by Stiply when the last signer has signed the document. Please note that key={sign_request_key},external_key={external_key} and sign_request_id={sign_request_id} shall be added to the call back url querystring. The URL will be called using a GET request. When the callback responses with an error status code, the callback is retried 12 times using an exponential backoff algorithm. |

## 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": "stiply",
      },
    },
  },
)

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: "stiply-send-sign-request",
  arguments: {
    title: "Title",
    fileUrls: ["File URLs"],
  },
})
```

**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: "stiply-send-sign-request",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    stiply: { authProvisionId: "apn_xxxxxxx" },
    title: "Title",
    fileUrls: ["File URLs"],
  },
})

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": "stiply-send-sign-request",
    "configured_props": {
      "stiply": { "authProvisionId": "apn_xxxxxxx" },
      "title": "Title",
      "fileUrls": ["File URLs"]
    }
  }'
```

---

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