# Rex — Pipedream Connect

> The real estate software platform built for all your agency needs.

- API slug: `rex` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: CRM
- Website: https://www.rexsoftware.com/
- This page (HTML): https://pipedream.com/apps/rex
- Tools: 10 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: rex`

```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": "rex",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Contact:
const result = await mcp.callTool({
  name: "rex-create-contact",
  arguments: {
    type: "Type",
    firstName: "First Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Rex endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```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: "rex-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    rex: { authProvisionId: "apn_xxxxxxx" },
    type: "Type",
    firstName: "First Name",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (10)

### `rex-create-contact` — Create Contact (Write)

Creates a new contact in Rex. See the documentation

Full schema: https://pipedream.com/apps/rex/actions/create-contact.md

### `rex-create-lead` — Create Lead (Write)

Creates a new lead in Rex. See the documentation

Full schema: https://pipedream.com/apps/rex/actions/create-lead.md

### `rex-create-reminder` — Create Reminder (Write)

Creates a new reminder in Rex. See the documentation

Full schema: https://pipedream.com/apps/rex/actions/create-reminder.md

### `rex-list-contact-id-options` — List Contact Options (Read-only)

Retrieves available options for the Contact field.

Full schema: https://pipedream.com/apps/rex/actions/list-contact-id-options.md

### `rex-list-listing-id-options` — List Listing Options (Read-only)

Retrieves available options for the Listing field.

Full schema: https://pipedream.com/apps/rex/actions/list-listing-id-options.md

### `rex-list-project-id-options` — List Project Options (Read-only)

Retrieves available options for the Project field.

Full schema: https://pipedream.com/apps/rex/actions/list-project-id-options.md

### `rex-list-project-stage-id-options` — List Project Stage Options (Read-only)

Retrieves available options for the Project Stage field.

Full schema: https://pipedream.com/apps/rex/actions/list-project-stage-id-options.md

### `rex-list-property-id-options` — List Property Options (Read-only)

Retrieves available options for the Property field.

Full schema: https://pipedream.com/apps/rex/actions/list-property-id-options.md

### `rex-list-source-id-options` — List Source Options (Read-only)

Retrieves available options for the Source field.

Full schema: https://pipedream.com/apps/rex/actions/list-source-id-options.md

### `rex-list-user-id-options` — List User ID Options (Read-only)

Retrieves available options for the User ID field.

Full schema: https://pipedream.com/apps/rex/actions/list-user-id-options.md

## Triggers (2)

### `rex-new-contact-created` — New Contact Created (Instant) (Instant)

Emit new event for each new contact created in Rex.

Full schema: https://pipedream.com/apps/rex/triggers/new-contact-created.md

### `rex-new-lead-created` — New Lead Created (Instant) (Instant)

Emit new event for each new lead created in Rex.

Full schema: https://pipedream.com/apps/rex/triggers/new-lead-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
