# Create Record — Ironclad

> Creates a new record in Ironclad. Provide properties as a JSON object where each key maps to a {type, value} wrapper. Run Describe Workspace first to see all valid record types and property keys (with their required type) in one call; List…

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

## Description

Creates a new record in Ironclad. Provide `properties` as a JSON object where each key maps to a `{type, value}` wrapper. Run **Describe Workspace** first to see all valid record types and property keys (with their required `type`) in one call; **List Type Options** / **List Properties Options** exist only to resolve a single value for this action's props, not for general discovery. Property types are snake_case, e.g. `string`, `number`, `monetary_amount`, `address`, `date`, `duration`, `boolean` — **not** the camelCase types used by workflow attributes. Complex types use nested objects: `monetary_amount` `{"currency": "USD", "amount": 25.37}`, `address` `{"lines": ["325 5th Street", "Suite 200"], "locality": "San Francisco", "region": "California", "postcode": "94107", "country": "USA"}`. Example: set `recordName` to `"Acme NDA"`, `recordType` to `"vendor_agreement"`, and `properties` to `{"counterpartyName": {"type": "string", "value": "Acme Corp"}, "contractValue": {"type": "monetary_amount", "value": {"currency": "USD", "amount": 50000}}}`; returns `{"id": "rec_abc123", "name": "Acme NDA"}`. [See the documentation](https://developer.ironcladapp.com/reference/create-a-record)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `recordName` | `string` | Yes | Name of the record. |
| `recordType` | `string` | Yes | The record type identifier. Call List Type Options to discover valid type keys (e.g. vendor_agreement). Options are loaded from the connected account. |
| `properties` | `string` | Yes | JSON object of property key to {type, value} wrapper pairs. Run Describe Workspace first to discover valid keys and their exact required type (e.g. string, number, boolean, monetary_amount, address, date, duration) — do not guess the type. Example: {"counterpartyName": {"type": "string", "value": "Acme Corp"}, "contractValue": {"type": "monetary_amount", "value": {"currency": "USD", "amount": 50000}}}. |
| `links` | `string[]` | No | Array of record IDs to link to the new record. Run Search Records first to find valid record IDs. Options are loaded from the connected account. |
| `parent` | `string` | No | Record ID to set as the parent of this record. Run Search Records first to find valid record IDs. Options are loaded from the connected account. |
| `children` | `string[]` | No | Array of record IDs to set as child records. Run Search Records first to find valid record IDs. Options are loaded from the connected account. |

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

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: "ironclad-create-record",
  arguments: {
    recordName: "Name",
    recordType: "Type",
  },
})
```

**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: "ironclad-create-record",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ironclad: { authProvisionId: "apn_xxxxxxx" },
    recordName: "Name",
    recordType: "Type",
  },
})

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": "ironclad-create-record",
    "configured_props": {
      "ironclad": { "authProvisionId": "apn_xxxxxxx" },
      "recordName": "Name",
      "recordType": "Type"
    }
  }'
```

---

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