# Create Signature Request — IgniSign

> Creates a document signature request through IgniSign. See the documentation

- Key: `ignisign-create-signature-request`
- Type: Action (Write)
- Version: 1.0.3
- App: IgniSign (`ignisign`) — https://pipedream.com/apps/ignisign.md
- This page (HTML): https://pipedream.com/apps/ignisign/actions/create-signature-request
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/ignisign/actions/create-signature-request/create-signature-request.mjs

## Description

Creates a document signature request through IgniSign. [See the documentation](https://ignisign.io/docs/ignisign-api/init-signature-request)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `signerIds` | `string[]` | Yes | The unique identifier of the signers Options are loaded from the connected account. |
| `documentLabel` | `string` | No | A user-friendly label to identify the document. |
| `documentDescription` | `string` | No | A detailed, human-readable description of the document. |
| `documentExternalId` | `string` | No | An optional external identifier that can be used to reference the document from external systems. It's a free text. Ignisign's system do not interprete it. |
| `file` | `string` | Yes | Provide a file URL or a path to a file in the /tmp directory. |
| `title` | `string` | Yes | The title of the signature request. |
| `description` | `string` | No | The description of the signature request. |
| `expirationDateIsActivated` | `boolean` | No | Indicates whether the expiration date is activated. |
| `expirationDate` | `string` | No | The expiration date. The action linked to this date is performed every 5 minutes, at 5, 10, 15... 55. |
| `language` | `string` | No | Represents the languages for signatures supported by a signature profile. |
| `syncDir` | `dir` | No | SyncDir |

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

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: "ignisign-create-signature-request",
  arguments: {
    signerIds: ["Signer IDs"],
    documentLabel: "Document Label",
  },
})
```

**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: "ignisign-create-signature-request",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ignisign: { authProvisionId: "apn_xxxxxxx" },
    signerIds: ["Signer IDs"],
    documentLabel: "Document Label",
  },
})

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": "ignisign-create-signature-request",
    "configured_props": {
      "ignisign": { "authProvisionId": "apn_xxxxxxx" },
      "signerIds": ["Signer IDs"],
      "documentLabel": "Document Label"
    }
  }'
```

---

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