# Create Account — Outreach

> Creates an account within Outreach. See the documentation

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

## Description

Creates an account within Outreach. [See the documentation](https://developers.outreach.io/api/reference/tag/Account/#tag/Account/paths/~1accounts/post)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `buyerIntentScore` | `string` | No | A custom score given to measure the quality of the account. |
| `companyType` | `string` | No | A description of the company's type (e.g. "Public Company"). |
| `customId` | `string` | No | A custom ID for the account, often referencing an ID in an external system. |
| `description` | `string` | No | A custom description of the account. |
| `domain` | `string` | No | The company's website domain (e.g. "www.acme.com"). |
| `externalSource` | `string` | No | The source of the resource's creation (e.g. "outreach-api"). |
| `followers` | `integer` | No | The number of followers the company has listed on social media. |
| `foundedAt` | `string` | No | The founding date of the company. Format: 'YYYY-MM-DDTHH:MM:SS.UUUZ' |
| `industry` | `string` | No | A description of the company's industry (e.g. "Manufacturing"). |
| `linkedInEmployees` | `integer` | No | The number of employees listed on the company's LinkedIn URL. |
| `linkedInUrl` | `string` | No | The company's LinkedIn URL. |
| `locality` | `string` | No | The company's primary geographic region (e.g. "Eastern USA"). |
| `name` | `string` | Yes | The name of the company (e.g. "Acme Corporation"). |
| `named` | `boolean` | No | A boolean value determining whether this is a "named" account or not. Only named accounts will show up on the collection index. |
| `naturalName` | `string` | No | The natural name of the company (e.g. "Acme"). |
| `numberOfEmployees` | `integer` | No | The number of employees working at the company. |
| `sharingTeamId` | `string` | No | The ID of the sharing team associated with this object. Access is currently in beta. |
| `tags` | `string[]` | No | A list of tag values associated with the account (e.g. ["Enterprise", "Tier 1"]). |
| `websiteUrl` | `string` | No | The company's website URL (e.g. "https://www.acme.com/contact"). |
| `custom1` | `string` | No | The value of the first custom field. |
| `custom2` | `string` | No | The value of the second custom field. |
| `custom3` | `string` | No | The value of the third custom field. |
| `custom4` | `string` | No | The value of the fourth custom field. |
| `custom5` | `string` | No | The value of the fifth custom field. |
| `custom6` | `string` | No | The value of the sixth custom field. |
| `custom7` | `string` | No | The value of the seventh custom field. |
| `custom8` | `string` | No | The value of the eight custom field. |
| `custom9` | `string` | No | The value of the ninth custom field. |
| `custom10` | `string` | No | The value of the 10th custom field. |
| `custom11` | `string` | No | The value of the 11th custom field. |
| `custom12` | `string` | No | The value of the 12th custom field. |
| `custom13` | `string` | No | The value of the 13th custom field. |
| `custom14` | `string` | No | The value of the 14th custom field. |
| `custom15` | `string` | No | The value of the 15th custom field. |
| `custom16` | `string` | No | The value of the 16th custom field. |
| `custom17` | `string` | No | The value of the 17th custom field. |
| `custom18` | `string` | No | The value of the 18th custom field. |
| `custom19` | `string` | No | The value of the 19th custom field. |
| `custom20` | `string` | No | The value of the 20th custom field. |

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

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: "outreach-create-account",
  arguments: {
    buyerIntentScore: "Buyer Intent Score",
    companyType: "Company 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: "outreach-create-account",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    outreach: { authProvisionId: "apn_xxxxxxx" },
    buyerIntentScore: "Buyer Intent Score",
    companyType: "Company 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": "outreach-create-account",
    "configured_props": {
      "outreach": { "authProvisionId": "apn_xxxxxxx" },
      "buyerIntentScore": "Buyer Intent Score",
      "companyType": "Company Type"
    }
  }'
```

---

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