# Create Certified Email — Signaturit

> Initiates the creation of a certified email. See the documentation

- Key: `signaturit-create-certified-email`
- Type: Action (Write)
- Version: 0.1.2
- App: Signaturit (`signaturit`) — https://pipedream.com/apps/signaturit.md
- This page (HTML): https://pipedream.com/apps/signaturit/actions/create-certified-email
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/signaturit/actions/create-certified-email/create-certified-email.mjs

## Description

Initiates the creation of a certified email. [See the documentation](https://docs.signaturit.com/api/latest#emails_create_email)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `body` | `string` | No | Email body (html code is allowed). |
| `brandingId` | `string` | No | ID of the branding to use. Options are loaded from the connected account. |
| `eventsUrl` | `string` | No | URL to receive real-time events. |
| `data` | `object` | No | Custom key-value data in JSON format. |
| `attachments` | `string[]` | No | The file(s) to attach. For each entry, provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.txt) |
| `recipients` | `string[]` | Yes | List of recipients in JSON format, e.g., '{"name": "John Doe", "email": "john@example.com"}'. See the documentation for further information. |
| `type` | `string` | No | Type of certified email. |
| `subject` | `string` | No | Email subject for email type requests. |
| `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": "signaturit",
      },
    },
  },
)

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: "signaturit-create-certified-email",
  arguments: {
    body: "Body",
    brandingId: "Branding ID",
  },
})
```

**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: "signaturit-create-certified-email",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    signaturit: { authProvisionId: "apn_xxxxxxx" },
    body: "Body",
    brandingId: "Branding ID",
  },
})

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": "signaturit-create-certified-email",
    "configured_props": {
      "signaturit": { "authProvisionId": "apn_xxxxxxx" },
      "body": "Body",
      "brandingId": "Branding ID"
    }
  }'
```

---

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