# Create Sender Signature — Postmark

> Create a new sender signature. See the documentation

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

## Description

Create a new sender signature. [See the documentation](https://postmarkapp.com/developer/api/signatures-api#create-signature)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `fromEmail` | `string` | Yes | From email associated with sender signature. |
| `name` | `string` | Yes | From name associated with sender signature. |
| `replyToEmail` | `string` | No | Override for reply-to address. |
| `returnPathDomain` | `string` | No | A custom value for the Return-Path domain. It is an optional field, but it must be a subdomain of your From Email domain and must have a CNAME record that points to pm.mtasv.net. For more information about this field, please read our support page. |
| `confirmationPersonalNote` | `string` | No | A way to provide a note to the recipient of the confirmation email to have context of what Postmark is. Max length of 400 characters. |

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

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: "postmark-create-signature",
  arguments: {
    fromEmail: "From Email",
    name: "Name",
  },
})
```

**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: "postmark-create-signature",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    postmark: { authProvisionId: "apn_xxxxxxx" },
    fromEmail: "From Email",
    name: "Name",
  },
})

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": "postmark-create-signature",
    "configured_props": {
      "postmark": { "authProvisionId": "apn_xxxxxxx" },
      "fromEmail": "From Email",
      "name": "Name"
    }
  }'
```

---

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