# LoopMessage — Pipedream Connect

> iMessage API for two-way communication

- API slug: `loopmessage` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Communication
- Website: https://loopmessage.com/
- This page (HTML): https://pipedream.com/apps/loopmessage
- Tools: 6 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: loopmessage`

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

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

const { tools } = await mcp.listTools()

// e.g. run Check Message Status:
const result = await mcp.callTool({
  name: "loopmessage-check-message-status",
  arguments: {
    messageId: "Message ID",
  },
})
```

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

## API proxy

For a LoopMessage 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://a.loopmessage.com/api/v1/audience/list/

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hLmxvb3BtZXNzYWdlLmNvbS9hcGkvdjEvYXVkaWVuY2UvbGlzdC8?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: "loopmessage-check-message-status",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    loopmessage: { authProvisionId: "apn_xxxxxxx" },
    messageId: "Message ID",
  },
})
```

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

## Actions (6)

### `loopmessage-check-message-status` — Check Message Status (Read-only)

Action to get the current outbound message status. Possible values: processing, failed, delivered.

Full schema: https://pipedream.com/apps/loopmessage/actions/check-message-status.md

### `loopmessage-list-sender-options` — List Sender Options (Read-only)

Retrieves available options for the Sender field.

Full schema: https://pipedream.com/apps/loopmessage/actions/list-sender-options.md

### `loopmessage-send-text-message` — Send Outbound Message (Write)

Action to send a message to an individual recipient.

Full schema: https://pipedream.com/apps/loopmessage/actions/send-text-message.md

### `loopmessage-send-voice-message` — Send Outbound Voice Message (Write)

Send a voice memo. Supports only in: iMessage, RCS, WhatsApp.

Full schema: https://pipedream.com/apps/loopmessage/actions/send-voice-message.md

### `loopmessage-send-reaction` — Send Reaction (Write)

Action to send a reaction in iMessage or RCS.

Full schema: https://pipedream.com/apps/loopmessage/actions/send-reaction.md

### `loopmessage-typing-indicator` — Show Typing Indicator (Write)

Action to present a typing indicator or read status

Full schema: https://pipedream.com/apps/loopmessage/actions/typing-indicator.md

## Triggers (2)

### `loopmessage-new-alert-received` — New Alert Received (Instant) (Instant)

Emit new event when an alert is received via webhook. See the documentation

Full schema: https://pipedream.com/apps/loopmessage/triggers/new-alert-received.md

### `loopmessage-new-inbound-message` — New Inbound Message (Instant) (Instant)

Emit new event when an inbound message is received.

Full schema: https://pipedream.com/apps/loopmessage/triggers/new-inbound-message.md

---

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